lib/vagrant-cloudstack/action/is_stopped.rb in vagrant-cloudstack-1.3.0 vs lib/vagrant-cloudstack/action/is_stopped.rb in vagrant-cloudstack-1.4.0
- old
+ new
@@ -1,18 +1,18 @@
-module VagrantPlugins
- module Cloudstack
- module Action
- # This can be used with "Call" built-in to check if the machine
- # is stopped and branch in the middleware.
- class IsStopped
- def initialize(app, env)
- @app = app
- end
-
- def call(env)
- env[:result] = env[:machine].state.id == :stopped
- @app.call(env)
- end
- end
- end
- end
-end
+module VagrantPlugins
+ module Cloudstack
+ module Action
+ # This can be used with "Call" built-in to check if the machine
+ # is stopped and branch in the middleware.
+ class IsStopped
+ def initialize(app, env)
+ @app = app
+ end
+
+ def call(env)
+ env[:result] = env[:machine].state.id == :stopped
+ @app.call(env)
+ end
+ end
+ end
+ end
+end