Skip to content

Commit

Permalink
Merge branch 'mkuzmin-get-state'
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljb committed Dec 30, 2014
2 parents ad4d975 + 72010a0 commit 0ef039a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/vSphere/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def self.action_reload
#vSphere specific actions
def self.action_get_state
Vagrant::Action::Builder.new.tap do |b|
b.use HandleBox
b.use ConfigValidate
b.use ConnectVSphere
b.use GetState
Expand Down
6 changes: 6 additions & 0 deletions spec/action_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ def run_get_state

run_get_state
end

it 'should handle the values in a base vagrant box' do
Vagrant::Action::Builtin::HandleBox.any_instance.should_receive(:call)

run_get_state
end
end

describe 'get ssh info' do
Expand Down

0 comments on commit 0ef039a

Please sign in to comment.