Class: Litterbox::ProfileSubcommand
- Inherits:
-
Thor
- Object
- Thor
- Litterbox::ProfileSubcommand
- Defined in:
- lib/litterbox.rb
Overview
CLI for litterbox
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
17 18 19 |
# File 'lib/litterbox.rb', line 17 def list puts Litterbox::Habitat::Profiles.read end |
#set(profile = nil) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/litterbox.rb', line 22 def set(profile = nil) if profile.nil? puts <<-EOF To set the profile execute the following: eval "$(litterbox profile set <profile>)" E.g. eval "$(litterbox profile set default)" EOF else puts Litterbox::Habitat::Profiles.set(profile) end end |