Class: Dply::Cli::Run

Inherits:
Object
  • Object
show all
Includes:
Logger
Defined in:
lib/dply/cli/run.rb

Instance Method Summary collapse

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

#lockObject



21
22
23
# File 'lib/dply/cli/run.rb', line 21

def lock
  @lock ||= Lock.new(Dir.pwd)
end

#runObject



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