Class: Dply::Cli::Run
Instance Method Summary collapse
-
#initialize(argv) ⇒ Run
constructor
A new instance of Run.
- #lock ⇒ Object
- #run ⇒ Object
Methods included from Logger
#debug?, #logger, stderr, #stderr
Constructor Details
#initialize(argv) ⇒ Run
Returns a new instance of Run.
11 12 13 |
# File 'lib/dply/cli/run.rb', line 11 def initialize(argv) @argv = argv end |
Instance Method Details
#lock ⇒ Object
21 22 23 |
# File 'lib/dply/cli/run.rb', line 21 def lock @lock ||= Lock.new(Dir.pwd) end |
#run ⇒ Object
15 16 17 18 19 |
# File 'lib/dply/cli/run.rb', line 15 def run lock.acquire app_config = AppConfig.new app_config.run_task @argv.shift end |