Sha256: d3429ca33b16902da1b6a7f2b5b4239b72e49177bd6f0e88c0fc904f2dd7f8e9

Contents?: true

Size: 1.1 KB

Versions: 9

Compression:

Stored size: 1.1 KB

Contents

#!/usr/bin/env ruby

begin
  require 'orly'
rescue LoadError
  require 'rubygems'
  require 'orly'
end

include Orly

Choice.options do

  header "Orly notifies you whenever you pull an update that requires 'bundle install', 'rake db:migrate' or 'pod install'"

  option :install do
    short '-i'
    long "--install"
    desc "install orly for this git repo"
    action { Orly::Installation::install() }
  end

  option :uninstall do
    short '-u'
    long "--uninstall"
    desc "uninstall orly for this git repo"
    action { Orly::Installation::uninstall() }
  end

  option :run do
    short '-r'
    long "--run"
    desc "run orly now"
    action { Orly::run() }
  end

  option :speak do
    short '-s'
    long "--speak"
    desc "makes the O RLY owl talk"
    action do |value|
      value = "YA RLY" if value == true
      Orly::OwlPrinter.print(value.split("\n"))
    end
  end

  option :version do
    short '-v'
    long "--version"
    desc "check orly's version"
    action do
      Orly::OwlPrinter.print(["Version: #{Orly::VERSION.to_s.green}"])
    end
  end

end

Choice.help if Choice.choices.empty?

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
orly-0.0.15 bin/orly
orly-0.0.14 bin/orly
orly-0.0.13 bin/orly
orly-0.0.12 bin/orly
orly-0.0.11 bin/orly
orly-0.0.10 bin/orly
orly-0.0.9 bin/orly
orly-0.0.8 bin/orly
orly-0.0.7 bin/orly