Sha256: 9f06656ef73aa09cdc1bd374e5521a9eb9d758d063d39add36718adb5f73c300

Contents?: true

Size: 529 Bytes

Versions: 2

Compression:

Stored size: 529 Bytes

Contents

require 'locomotive_cmd/version'
require 'thor'
require 'thor/group'

module Locomotive::Cmd
  class Command
    case ARGV.first
    when 'version'
      puts Locomotive::Cmd::VERSION
    when 'install'
      ARGV.shift
      require 'locomotive_cmd/installer'
      Locomotive::Cmd::Installer.start
    when 'check'
      ARGV.shift
      require 'locomotive_cmd/checker'
      Locomotive::Cmd::Checker.start
    else
      #todo: ASK FOR HELP
      puts 'usage: locomotive_cmd [version|checker|install] args'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locomotive_cmd-0.0.2 lib/locomotive_cmd.rb
locomotive_cmd-0.0.1 lib/locomotive_cmd.rb