lib/relish/commands/push.rb in relish-0.1.6 vs lib/relish/commands/push.rb in relish-0.2.0
- old
+ new
@@ -4,11 +4,11 @@
require 'rest_client'
module Relish
module Command
class Push < Base
-
+
usage 'push <project>:<version>'
desc ['push features to relishapp.com',
'<version> is optional',
'example: relish push rspec/rspec-core',
'example: relish push rspec/rspec-core:2.0']
@@ -30,11 +30,11 @@
str << "&version_id=#{version}" if version
end
end
def project
- @param.without_option || super()
+ (@param.without_option if @param) || super()
end
def version
@param.extract_option if @param.has_option?
end
@@ -52,10 +52,11 @@
end
stream.string
end
def files
- Dir['features/**/*.{feature,md,markdown}']
+ Dir["features/**/*.{feature,md,markdown}"] +
+ Dir["features/**/.nav"]
end
end