Class: GemFast::Command::Base

Inherits:
Object
  • Object
show all
Includes:
UI
Defined in:
lib/gem-fast/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Base

Returns a new instance of Base.



8
9
10
# File 'lib/gem-fast/command.rb', line 8

def initialize(args)
  @args = args             
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



6
7
8
# File 'lib/gem-fast/command.rb', line 6

def args
  @args
end

Instance Method Details

#usageObject



12
13
14
15
16
17
18
19
20
# File 'lib/gem-fast/command.rb', line 12

def usage
    <<-EOTXT
=== Command List:
sudo gem-fast patch apply,  apply patch to rubygems then you will use curl to download gems
sudo gem-fast patch revert, revert back to original


EOTXT
end