Module: MediaWikiVagrant::PluginEnvironment
- Included in:
- Config, FilePerms, ForwardPort, Hiera, Open, PastePuppet, Reload, Roles::Change, Roles::Info, Roles::List, Roles::Reset
- Defined in:
- lib/mediawiki-vagrant/plugin_environment.rb
Instance Method Summary collapse
- #initialize(*args) ⇒ Object
-
#interactive_out? ⇒ true, false
Whether we're sending output to an interactive terminal.
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.
15 16 17 |
# File 'lib/mediawiki-vagrant/plugin_environment.rb', line 15 def interactive_out? $stdout.tty? end |