Class: AmusingGit::CLI

Inherits:
Thor
  • Object
show all
Includes:
PrettyPrinter
Defined in:
lib/amusing_git/cli.rb

Instance Method Summary collapse

Methods included from PrettyPrinter

#colorize, #green, #print_error, #print_info, #print_success, #red, #yellow

Instance Method Details

#amuseObject



28
29
30
31
# File 'lib/amusing_git/cli.rb', line 28

def amuse
  maybe_setup_amusing_git
  amuser.amuse
end

#setupObject



34
35
36
# File 'lib/amusing_git/cli.rb', line 34

def setup
  amusing_git_setup.start
end

#startObject



10
11
12
13
# File 'lib/amusing_git/cli.rb', line 10

def start
  maybe_setup_amusing_git
  amuser.start_amusing Dir.pwd
end

#stopObject



16
17
18
19
# File 'lib/amusing_git/cli.rb', line 16

def stop
  maybe_setup_amusing_git
  amuser.stop_amusing Dir.pwd
end