Class: VagrantPlugins::MountCommand::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::MountCommand::Config
- Defined in:
- lib/vagrant-mountcommand/config.rb
Instance Method Summary collapse
- #command(command_to_run) ⇒ Object
- #commands ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #merge(other) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/vagrant-mountcommand/config.rb', line 5 def initialize @__mount_commands = [] end |
Instance Method Details
#command(command_to_run) ⇒ Object
13 14 15 |
# File 'lib/vagrant-mountcommand/config.rb', line 13 def command(command_to_run) @__mount_commands.push command_to_run end |
#commands ⇒ Object
9 10 11 |
# File 'lib/vagrant-mountcommand/config.rb', line 9 def commands @__mount_commands end |
#merge(other) ⇒ Object
17 18 19 |
# File 'lib/vagrant-mountcommand/config.rb', line 17 def merge(other) @__mount_commands.concat(other.instance_variable_get(:@__mount_commands)) end |