lib/travis/deploy.rb in travis-deploy-0.1.0 vs lib/travis/deploy.rb in travis-deploy-0.2.0

- old
+ new

@@ -15,12 +15,15 @@ desc 'config', 'Sync config between keychain, app and local working directory' method_option :env, :aliases => '-e', :type => :string method_option :source, :aliases => '-s', :type => :string method_option :backup, :aliases => '-b', :type => :boolean, :default => false + method_option :pretend, :type => :boolean, :default => false + method_option :app, :type => :string def config(remote) - Config.new(shell, remote, options).invoke + config = Config.new(shell, remote, options) + options[:pretend] ? config.pretend : config.invoke end desc 'deploy', 'Deploy to the given remote' method_option :migrate, :aliases => '-m', :type => :boolean, :default => false method_option :configure, :aliases => '-c', :type => :boolean, :default => false