lib/dply/cli/reload.rb in dply-0.1.0 vs lib/dply/cli/reload.rb in dply-0.1.1
- old
+ new
@@ -1,7 +1,9 @@
require 'dply/logger'
require 'dply/lock'
+require 'dply/strategy'
+require 'dply/config'
module Dply
module Cli
class Reload
@@ -11,30 +13,22 @@
@argv = argv
end
def run
lock.acquire
- strategy.deploy
+ strategy.reload
end
def strategy
- @strategy ||= ::Dply::Strategy.load(config, options)
+ @strategy ||= Strategy.load(config, {})
end
def config
- @config ||= ::Dply::Config.new(dir).to_struct
+ @config ||= Config.new.to_struct
end
- def dir
- @dir ||= Dir.pwd
- end
-
def lock
- @lock ||= ::Dply::Lock.new
- end
-
- def options
- @options ||= {}
+ @lock ||= Lock.new
end
end
end
end