Sha256: 48f9b8e235e299bdd40058fe39ec04cf24434c064318ac1ea919b53ea9b18581
Contents?: true
Size: 582 Bytes
Versions: 7
Compression:
Stored size: 582 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" features = [] Dir.glob(File.join("#{ARGV[2]}", "**/*.feature")).each do |feature_path| features << {:path => feature_path, :content => File.read(feature_path)} end RestClient.put "#{ARGV[1]}/features/?authentication_code=#{File.read(".wally")}", features.to_json, {:content_type => :json, :accept => :json} end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
wally-0.0.28 | bin/wally |
wally-0.0.27 | bin/wally |
wally-0.0.26 | bin/wally |
wally-0.0.25 | bin/wally |
wally-0.0.24 | bin/wally |
wally-0.0.22 | bin/wally |
wally-0.0.21 | bin/wally |