Class: Strum::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/strum/cli.rb

Overview

Command line interface

Instance Method Summary collapse

Instance Method Details

#consoleObject



19
20
21
# File 'lib/strum/cli.rb', line 19

def console
  run "bundle exec rake #{File.expand_path('bin/console')}"
end

#serverObject



24
25
26
# File 'lib/strum/cli.rb', line 24

def server
  run File.expand_path("bin/strum")
end

#versionObject



32
33
34
35
# File 'lib/strum/cli.rb', line 32

def version
  require_relative "version"
  say "Strum #{Strum::VERSION}"
end