Compare commits

..
2 Commits
Author SHA1 Message Date
David Dollar d4c2332c59 0.34.1 2012-01-16 09:53:56 -05:00
David Dollar e257fc89c1 fix missing start desc 2012-01-16 09:53:43 -05:00
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
PATH PATH
remote: . remote: .
specs: specs:
foreman (0.34.0) foreman (0.34.1)
term-ansicolor (~> 1.0.5) term-ansicolor (~> 1.0.5)
thor (>= 0.13.6) thor (>= 0.13.6)
+6 -4
View File
@@ -5,7 +5,9 @@ require "thor"
require "yaml" require "yaml"
class Foreman::CLI < Thor class Foreman::CLI < Thor
desc "start", "Start the application"
class_option :procfile, :type => :string, :aliases => "-f", :desc => "Default: Procfile" class_option :procfile, :type => :string, :aliases => "-f", :desc => "Default: Procfile"
class_option :app_root, :type => :string, :aliases => "-d", :desc => "Default: Procfile directory" class_option :app_root, :type => :string, :aliases => "-d", :desc => "Default: Procfile directory"
@@ -20,7 +22,7 @@ class Foreman::CLI < Thor
super super
end end
end end
def start def start
check_procfile! check_procfile!
engine.start engine.start
@@ -60,7 +62,7 @@ class Foreman::CLI < Thor
error "no processes defined" unless engine.procfile.entries.length > 0 error "no processes defined" unless engine.procfile.entries.length > 0
display "valid procfile detected (#{engine.procfile.process_names.join(', ')})" display "valid procfile detected (#{engine.procfile.process_names.join(', ')})"
end end
desc "run COMMAND", "Run a command using your application's environment" desc "run COMMAND", "Run a command using your application's environment"
def run(*args) def run(*args)
@@ -73,7 +75,7 @@ class Foreman::CLI < Thor
error "command not found: #{args.first}" error "command not found: #{args.first}"
end end
end end
private ###################################################################### private ######################################################################
def check_procfile! def check_procfile!
+1 -1
View File
@@ -1,5 +1,5 @@
module Foreman module Foreman
VERSION = "0.34.0" VERSION = "0.34.1"
end end