Class: AmusingGit::CLI
- Inherits:
-
Thor
- Object
- Thor
- AmusingGit::CLI
show all
- Includes:
- PrettyPrinter
- Defined in:
- lib/amusing_git/cli.rb
Instance Method Summary
collapse
#colorize, #green, #print_error, #print_info, #print_success, #red, #yellow
Instance Method Details
#amuse ⇒ Object
28
29
30
31
|
# File 'lib/amusing_git/cli.rb', line 28
def amuse
maybe_setup_amusing_git
amuser.amuse
end
|
#setup ⇒ Object
34
35
36
|
# File 'lib/amusing_git/cli.rb', line 34
def setup
amusing_git_setup.start
end
|
#start ⇒ Object
10
11
12
13
|
# File 'lib/amusing_git/cli.rb', line 10
def start
maybe_setup_amusing_git
amuser.start_amusing Dir.pwd
end
|
#stop ⇒ Object
16
17
18
19
|
# File 'lib/amusing_git/cli.rb', line 16
def stop
maybe_setup_amusing_git
amuser.stop_amusing Dir.pwd
end
|