Class: Autowow::CLI

Inherits:
Thor
  • Object
show all
Includes:
EasyLogging
Defined in:
lib/autowow/cli.rb

Instance Method Summary collapse

Instance Method Details

#add_upstreamObject



49
50
51
# File 'lib/autowow/cli.rb', line 49

def add_upstream
  Autowow::Features::Vcs.add_upstream
end

#branch_mergedObject



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

def branch_merged
  Autowow::Features::Vcs.branch_merged
end

#clear_branchesObject



44
45
46
# File 'lib/autowow/cli.rb', line 44

def clear_branches
  Autowow::Features::Vcs.clear_branches
end

#exec(*cmd) ⇒ Object



90
91
92
# File 'lib/autowow/cli.rb', line 90

def exec(*cmd)
  Autowow::Executor.pretty_with_output.run(cmd)
end

#gem_cleanObject



69
70
71
# File 'lib/autowow/cli.rb', line 69

def gem_clean
  Autowow::Features::Gem.gem_clean
end

#gem_releaseObject



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

def gem_release
  Autowow::Features::Gem.gem_release
end

#greetObject



79
80
81
# File 'lib/autowow/cli.rb', line 79

def greet
  Autowow::Features::Vcs.greet
end

#hiObject



54
55
56
# File 'lib/autowow/cli.rb', line 54

def hi
  Autowow::Features::Vcs.hi
end

#hi!Object



59
60
61
# File 'lib/autowow/cli.rb', line 59

def hi!
  Autowow::Features::Vcs.hi!
end

#openObject



64
65
66
# File 'lib/autowow/cli.rb', line 64

def open
  Autowow::Features::Vcs.open
end

#rubocop_parallel_autocorrectObject



84
85
86
87
# File 'lib/autowow/cli.rb', line 84

def rubocop_parallel_autocorrect
  logger.warn('Experimental feature, in practice it is not faster than running `rubocop -a`!')
  Autowow::Features::Gem.rubocop_parallel_autocorrect
end

#ruby_versionsObject



74
75
76
# File 'lib/autowow/cli.rb', line 74

def ruby_versions
  Autowow::Features::Rbenv.ruby_versions
end

#update_projectsObject



39
40
41
# File 'lib/autowow/cli.rb', line 39

def update_projects
  Autowow::Features::Vcs.update_projects
end