Sha256: 374057747945061a02d9d99bb261086f4939ae9c0517daab3476290405f4ca29
Contents?: true
Size: 526 Bytes
Versions: 16
Compression:
Stored size: 526 Bytes
Contents
require 'dply/logger' require 'dply/lock' require 'dply/app_config' module Dply module Cli class Task include Logger def initialize(argv) @argv = argv end def run task_name = @argv.shift error "task name not specified" if not task_name lock.acquire Dir.chdir "current" do app_config = AppConfig.new app_config.run_task task_name end end def lock @lock ||= Lock.new(Dir.pwd) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems