Skip to content
Browse files

fix deploy bug

  • Loading branch information...
1 parent 63ce7b0 commit 8d44bb3c2e392a6e402e5fd145715d9fe9ea2aaf @jalberto jalberto committed
Showing with 5 additions and 5 deletions.
  1. +1 −1 bin/ia
  2. +4 −4 lib/ia_utils.rb
View
2 bin/ia
@@ -107,7 +107,7 @@ command :queca do |c|
queca_prepare_deploy(global_options[:remote])
elsif options[:initremote]
name?(global_options)
- queca_init_remote_git(global_options[:name])
+ queca_init_remote_git(global_options[:name], global_options[:remote])
elsif options[:sync]
if queca?
queca_syncdb(options[:source], options[:target])
View
8 lib/ia_utils.rb
@@ -60,11 +60,11 @@ def name?(global_options)
def remote?(global_options)
raise "** Necesitas especificar un servidor remoto QuecaSDK (-r)".color(:red) unless global_options[:remote]
end
- def git?(global_options)
- raise "** No estas en un repo GIT".color(:red) unless FileTes.exists?(".git")
+ def git?
+ raise "** No estas en un repo GIT".color(:red) unless FileTest.exists?(".git")
end
- def iacfg?(global_options)
- raise "** Necesitas definir ~/.ia_config para usar este comando".color(:red) unless FileTes.exists?("~/.ia_config")
+ def iacfg?
+ raise "** Necesitas definir ~/.ia_config para usar este comando".color(:red) unless FileTest.exists?("~/.ia_config")
end
end

0 comments on commit 8d44bb3

Please sign in to comment.
Something went wrong with that request. Please try again.