Sha256: 2687117dc9dfe5fede51ad992e5a24572bad2bec2251836dadb78758af4971f1
Contents?: true
Size: 790 Bytes
Versions: 1
Compression:
Stored size: 790 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib') if ARGV.first == "server" require "wally" Sinatra::Application.run! elsif ARGV[0] == "push" require "restclient" require "json" require "wally" features = [] Dir.glob(File.join("#{ARGV[2]}", "**/*.feature")).each do |feature_path| begin gherkin = Wally::ParsesFeatures.new.parse(File.read(feature_path)) rescue puts "Couldn't parse '#{feature_path}'" puts "Contents:" puts File.read(feature_path) end features << {:path => feature_path, :gherkin => gherkin} end RestClient.put "#{ARGV[1]}/features/?authentication_code=#{File.read(".wally")}", features.to_json, {:content_type => :json, :accept => :json} end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wally-0.0.30 | bin/wally |