Class: VagrantPlugins::MountCommand::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-mountcommand/config.rb

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#commandsObject



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