b0VIM 7.4X Xmsimoninleto.local~msimonin/msimonin@github.com/vagrant-g5k/lib/vagrant-g5k/action.rb 3210#"! Utpv,wad"vH! c3 5 (  ~ r h g /  d 8  E ' ] J : 9    pQ$]L,T6tBsO8#oaUKJ T if [:Running, :Waiting].include?(env1[:result]) b.use Call, GetState do |env1, b2| b.use ConnectG5K b.use ConfigValidate Vagrant::Action::Builder.new.tap do |b| def self.action_halt # This action is called to shutdown the remote machine. end end end end b2.use MessageWillNotDestroy else end end next b3.use MessageNotCreated else next b3.use DeleteDisk elsif env2[:result] == :shutdown next b3.use DeleteDisk b3.use DeleteJob if [:Running, :Waiting].include?(env2[:result]) b2.use Call, GetState do |env2, b3| b2.use ConnectG5K b2.use ConfigValidate if env[:result] b.use Call, DestroyConfirm do |env, b2| Vagrant::Action::Builder.new.tap do |b| def self.action_destroy # This action is called to terminate the remote machine. end end end end b1.use RunInstance # launch a new instance b1.use CreateLocalWorkingDir b1.use ConnectG5K else b1.use WaitInstance b1.use ConnectG5K elsif env1[:result] == :Waiting b1.use MessageAlreadyRunning if env1[:result] == :Running then b.use Call, GetState do |env1, b1| b.use ConfigValidate Vagrant::Action::Builder.new.tap do |b| def self.action_up # This action is called to bring the box up from nothing. end end end b2.use SSHRun end next b2.use MessageNotRunning if env[:result] != :Running b.use Call, GetState do |env, b2| b.use ConfigValidate Vagrant::Action::Builder.new.tap do |b| def self.action_ssh_run # This action is called when vagrant ssh -C "..." is used end end end b2.use SSHExec end next b2.use MessageNotRunning if env[:result] != :Running b.use Call, GetState do |env, b2| # in GetState Middleware # read_state is hook by the call to machine.state.id b.use ConfigValidate Vagrant::Action::Builder.new.tap do |b| def self.action_ssh # This action is called to SSH into the machine. end end b.use ReadSSHInfo b.use ConnectG5K b.use ConfigValidate Vagrant::Action::Builder.new.tap do |b| def self.action_read_ssh_info # key. # resulting state is expected to be put into the `:machine_ssh_info` # This action is called to read the SSH info of the machine. The end end b.use ReadState b.use ConnectG5K b.use ConfigValidate Vagrant::Action::Builder.new.tap do |b| def self.action_read_state # key. # resulting state is expected to be put into the `:machine_state_id` # This action is called to read the state of the machine. The include Vagrant::Action::Builtin # Include the built-in modules so we can use them as top-level things. module Action module G5Kmodule VagrantPluginsrequire "vagrant/action/builder"require "pathname"ad% ,ygYMCBd< f * ` ( ? F    end end end autoload :WaitInstance, action_root.join("wait_instance") autoload :StartInstance, action_root.join("start_instance") autoload :RunInstance, action_root.join("run_instance") autoload :ReadState, action_root.join("read_state") autoload :ReadSSHInfo, action_root.join("read_ssh_info") autoload :MessageNotRunning, action_root.join("message_not_running") autoload :MessageNotCreated, action_root.join("message_not_created") autoload :MessageAlreadyRunning, action_root.join("message_already_running") autoload :GetState, action_root.join("get_state") autoload :DeleteDisk, action_root.join("delete_disk") autoload :DeleteJob, action_root.join("delete_job") autoload :CreateLocalWorkingDir, action_root.join("create_local_working_dir") autoload :ConnectG5K, action_root.join("connect_g5k") action_root = Pathname.new(File.expand_path("../action", __FILE__)) end end end b2.use Provision end next b2.use MessageNotRunning if env[:result] != :Running b.use Call, GetState do |env, b2| b.use ConfigValidate Vagrant::Action::Builder.new.tap do |b| def self.action_provision # This action is called when `vagrant provision` is called. end end end end next b2.use MessageNotCreated else next b2.use DeleteJob