Class: Hubless::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/application.rb

Class Method Summary collapse

Class Method Details

.run(*args) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/application.rb', line 6

def self.run(*args)
  if help_option?(args)
    display_help
  else
    hubless = Hubless.new
    hubless.gem_breakdown
    hubless.github_repos
    hubless.gemcutter_gems
    hubless.uninstall_instructions
    if install_option?(args)
      hubless.install_gems
    else
      hubless.install_instructions
    end
  end
  return 0
end