Module: VagrantPlugins::G5K

Included in:
Action::ConnectG5K, Connection, Network::Bridge
Defined in:
lib/vagrant-g5k.rb,
lib/vagrant-g5k/oar.rb,
lib/vagrant-g5k/action.rb,
lib/vagrant-g5k/config.rb,
lib/vagrant-g5k/driver.rb,
lib/vagrant-g5k/errors.rb,
lib/vagrant-g5k/plugin.rb,
lib/vagrant-g5k/command.rb,
lib/vagrant-g5k/version.rb,
lib/vagrant-g5k/disk/rbd.rb,
lib/vagrant-g5k/provider.rb,
lib/vagrant-g5k/disk/local.rb,
lib/vagrant-g5k/network/nat.rb,
lib/vagrant-g5k/g5k_connection.rb,
lib/vagrant-g5k/network/bridge.rb,
lib/vagrant-g5k/action/get_state.rb,
lib/vagrant-g5k/action/delete_job.rb,
lib/vagrant-g5k/action/is_created.rb,
lib/vagrant-g5k/action/read_state.rb,
lib/vagrant-g5k/action/connect_g5k.rb,
lib/vagrant-g5k/action/delete_disk.rb,
lib/vagrant-g5k/action/run_instance.rb,
lib/vagrant-g5k/action/read_ssh_info.rb,
lib/vagrant-g5k/action/wait_instance.rb,
lib/vagrant-g5k/action/message_not_created.rb,
lib/vagrant-g5k/action/message_not_running.rb,
lib/vagrant-g5k/action/message_already_running.rb,
lib/vagrant-g5k/action/create_local_working_dir.rb

Defined Under Namespace

Modules: Action, Disk, Errors, Network Classes: Command, Config, Connection, Driver, Oar, Plugin, Provider

Constant Summary collapse

VERSION =
'0.9.9'

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.g5k_lockObject

Returns the value of attribute g5k_lock.



10
11
12
# File 'lib/vagrant-g5k.rb', line 10

def g5k_lock
  @g5k_lock
end

.poolObject

Returns the value of attribute pool.



12
13
14
# File 'lib/vagrant-g5k.rb', line 12

def pool
  @pool
end

.subnet_lockObject

Returns the value of attribute subnet_lock.



11
12
13
# File 'lib/vagrant-g5k.rb', line 11

def subnet_lock
  @subnet_lock
end

Class Method Details

.source_rootPathname

This returns the path to the source of this plugin.

Returns:

  • (Pathname)


25
26
27
# File 'lib/vagrant-g5k.rb', line 25

def self.source_root
  @source_root ||= Pathname.new(File.expand_path("../../", __FILE__))
end

Instance Method Details

#lockable(opts) ⇒ Object



29
30
31
32
33
# File 'lib/vagrant-g5k.rb', line 29

def lockable(opts)
  opts[:lock].synchronize {
    yield
  }
end