Sha256: 9dbd13160b23678cde726aed4f1695026f1fad9b008c6ab28634fae0cfb4f84b

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

#!/usr/bin/env ruby

require './rocket_api/rocket_commands'
require './rocket_api/constants'

base_command = ARGV[0]
sub_command = ARGV[1]
project_name = ARGV[2]

case base_command
when RocketApi::INIT
  case sub_command
  when RocketApi::BASE
    #  TODO: implement me
  when RocketApi::GEM
    RocketApi::RocketCommands.init_gem_dir
    RocketApi::RocketCommands.init_gem_files project_name&.downcase
  else
    puts RocketApi::WRONG_ANSWER
  end
else
  puts RocketApi::WRONG_ANSWER
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rocket_api-0.0.1.1 bin/rocket_api