Skip to content

Commit

Permalink
Allow vagrant ssh -c 'command'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Mitchell committed Jun 12, 2013
1 parent 1dbf7ed commit 182007f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/vagrant-openstack-plugin/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@ def self.action_ssh
end
end

def self.action_ssh_run
Vagrant::Action::Builder.new.tap do |b|
b.use ConfigValidate
b.use Call, IsCreated do |env, b2|
if !env[:result]
b2.use MessageNotCreated
next
end

b2.use SSHRun
end
end
end

def self.action_up
Vagrant::Action::Builder.new.tap do |b|
b.use ConfigValidate
Expand Down

0 comments on commit 182007f

Please sign in to comment.