lib/mina/proteus.rb in mina-proteus-0.5.2 vs lib/mina/proteus.rb in mina-proteus-0.5.3

- old
+ new

@@ -1,6 +1,5 @@ - def _default_stage fetch(:default_stage, 'staging') end def _default_stages @@ -80,16 +79,12 @@ end end _potential_stage = ARGV.first -if _stage_file_exists?(_potential_stage) && _argument_included_in_stages?(_potential_stage) - invoke _potential_stage - invoke ARGV[1] if _app_file_in_stage_exists?(_potential_stage, ARGV[1]) && _argument_included_in_apps?(ARGV[1]) -elsif _stage_file_exists?(_default_stage) +if !_stage_file_exists?(_potential_stage) && _stage_file_exists?(_default_stage) invoke _default_stage - invoke ARGV[0] if _app_file_in_stage_exists?(_default_stage, ARGV[0]) && _argument_included_in_apps?(ARGV[0]) end namespace :proteus do desc 'Create stage and apps files' task :init do @@ -124,6 +119,6 @@ puts " Skipping #{appfile}, it already exists" end end end end -end +end \ No newline at end of file