Sha256: 983d8965ef26f459b577ea2a717cfe722e83452fc31f9e901d81059e798f1922
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wally-0.0.20 | bin/wally |