Module: MediaWikiVagrant::PluginEnvironment

Included in:
Config, FilePerms, ForwardPort, Hiera, PastePuppet, Reload, Roles::Change, Roles::Info, Roles::List, Roles::Reset
Defined in:
lib/mediawiki-vagrant/plugin_environment.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



5
6
7
8
9
# File 'lib/mediawiki-vagrant/plugin_environment.rb', line 5

def initialize(*args)
  super
  env = @env || @machine.env
  @mwv = Environment.new(env.root_path || env.cwd)
end

#interactive_out?true, false

Whether we're sending output to an interactive terminal.

Returns:

  • (true, false)


15
16
17
# File 'lib/mediawiki-vagrant/plugin_environment.rb', line 15

def interactive_out?
  $stdout.tty?
end