Sha256: 0b3c6eb7adda925fece2fff819e3faacaf34addd1ccd12303229f31827ba0b18

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

require 'thor'
require 'gurk/cli'

module Gurk

  class Runner < Thor

    map "-T" => :list, "-i" => :install, "-u" => :update, "-v" => :version

    desc "new app_name", "Generates a new Gurk application"
    method_options :as => :string, :relative => :boolean, :force => :boolean
    def new(name)
      Gurk::Cli.new([name]).setup
      say "New Gurk app generated. Now start Gurkin!"
    end

    desc "version", "Show Gurk version"
    def version
      require 'thor/version'
      say "Gurk #{Gurk::VERSION}"
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gurk-0.0.1 lib/gurk/runner.rb