Sha256: 395fb4d22553d316f4f95f7cbba4f485da94c7c51c54875dfb0cf12e56fb0b02

Contents?: true

Size: 872 Bytes

Versions: 3

Compression:

Stored size: 872 Bytes

Contents

#!/usr/bin/env ruby

require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'osrcry'))

arguments = ARGV.map {|arg| arg.downcase}
commands = %w{
  contributing
  contributing.md
  contributors
  contributors.md
  init
  license
  license.md
  stale
}

unless arguments.any? {|argument| commands.include?(argument)}
  puts "Please specify: `contributing`, `contributors`, `init`, `license` and/or `stale`"
else
  arguments.each do |command|
    case command
    when 'contributing', 'contributing.md'
      Osrcry::Contributing.execute
    when 'contributors', 'contributors.md'
      Osrcry::Contributors.execute
    when 'init'
      Osrcry::Contributing.execute
      Osrcry::Contributors.execute
      Osrcry::License.execute
    when 'license', 'license.md'
      Osrcry::License.execute
    when 'stale'
      Osrcry::Stale.execute
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
osrcry-0.2.3 bin/osrcry
osrcry-0.2.2 bin/osrcry
osrcry-0.2.1 bin/osrcry