Use kamal from the
This commit is contained in:
committed by
Jorge Manrubia
parent
2c7079393a
commit
5d32e40756
@@ -34,9 +34,12 @@ if Fizzy.saas?
|
|||||||
gem_path = Gem::Specification.find_by_name("fizzy-saas").gem_dir
|
gem_path = Gem::Specification.find_by_name("fizzy-saas").gem_dir
|
||||||
deploy_config = File.join(gem_path, "config", "deploy.yml")
|
deploy_config = File.join(gem_path, "config", "deploy.yml")
|
||||||
|
|
||||||
# Add -c option to ARGV if not already present
|
|
||||||
unless ARGV.include?("-c") || ARGV.include?("--config-file")
|
unless ARGV.include?("-c") || ARGV.include?("--config-file")
|
||||||
ARGV.unshift("-c", deploy_config)
|
if ARGV.empty? || ARGV.first.start_with?("-")
|
||||||
|
ARGV.unshift("-c", deploy_config)
|
||||||
|
else
|
||||||
|
ARGV.insert(1, "-c", deploy_config)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user