Created
January 15, 2010 22:32
-
-
Save josevalim/278476 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Bubble::Cli::Add < Base | |
| class_option :force, :aliases => "-f", :type => :boolean, :default => false, | |
| :desc => "Force" | |
| def first_step | |
| end | |
| def second_step | |
| end | |
| def third_step | |
| end | |
| protected | |
| def not_executed | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # The base class have some common configuration and options | |
| class Bubble::Cli::Base < Thor::Group | |
| class_option :track, :type => :string, :aliases => "-t", | |
| :desc => "Track something" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Bubble::Cli::Remove < Base | |
| # We don't need it here | |
| remove_class_option :track | |
| # Logic | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment