Sha256: 1943067a7b12f128b350ae77b52aecc3bae373dfd46c44ca8c1916f67a2f08b3

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

#!/usr/bin/env ruby
require "slop"

opts = Slop.new(:strict => true)
opts.parse do |action|
  require "yads"
  deployer = Yads::Deployer.new(STDOUT)

  action = action.to_sym
  if !action.empty? && deployer.respond_to?(action)
    deployer.send(action)
  else
    puts "Unknow command \"#{action}\""
    puts "Usage: yads [setup|deploy]"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yads-0.1.2 bin/yads
yads-0.1.1 bin/yads
yads-0.1.0 bin/yads