Class: Ben::CLI
- Inherits:
-
Thor
- Object
- Thor
- Ben::CLI
- Defined in:
- lib/ben/cli.rb
Instance Attribute Summary collapse
-
#o ⇒ Object
readonly
Returns the value of attribute o.
Instance Method Summary collapse
- #disk(p_disk = nil) ⇒ Object
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
11 12 13 14 15 16 17 |
# File 'lib/ben/cli.rb', line 11 def initialize(*) super o = @o = .dup the_shell = (["no-color"] ? Thor::Shell::Basic.new : shell) Ben.ui = UI::Shell.new(the_shell) Ben.ui.debug! if ["verbose"] end |
Instance Attribute Details
#o ⇒ Object (readonly)
Returns the value of attribute o.
9 10 11 |
# File 'lib/ben/cli.rb', line 9 def o @o end |
Instance Method Details
#disk(p_disk = nil) ⇒ Object
20 21 22 23 24 |
# File 'lib/ben/cli.rb', line 20 def disk(p_disk=nil) p_disk ||= Rc.disk.disk Disk.run(p_disk.dup) end |