Class: Dash::Cli::Base
- Inherits:
-
Thor
- Object
- Thor
- Dash::Cli::Base
- Includes:
- SSHKit::DSL
- Defined in:
- lib/dash/cli/base.rb
Defined Under Namespace
Classes: LockHeldError, LockMissingError
Constant Summary collapse
- VERBOSITY =
{ verbose: :debug, quiet: :error }.freeze
- AUTOMATIC_DEPLOY_LOCK_MESSAGE =
"Automatic deploy lock"- HOOK_MUTEX =
Hooks set process-global state (the hook env and the SSHKit verbosity), so serialize them: some fire from inside SSHKit's per-host threads.
Mutex.new
Class Attribute Summary collapse
-
.legacy_project_directory_warned ⇒ Object
Returns the value of attribute legacy_project_directory_warned.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args = [], local_options = {}, config = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(args = [], local_options = {}, config = {}) ⇒ Base
Returns a new instance of Base.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/dash/cli/base.rb', line 45 def initialize(args = [], = {}, config = {}) if config[:current_command].is_a?(Dash::Cli::Alias::Command) # When Thor generates a dynamic command, it doesn't attempt to parse the arguments. # For our purposes, it means the arguments are passed in args rather than local_options. super([], args, config) else super end unless DASH.configured? initialize_commander warn_on_legacy_project_directory(config[:current_command]&.name) end end |
Class Attribute Details
.legacy_project_directory_warned ⇒ Object
Returns the value of attribute legacy_project_directory_warned.
24 25 26 |
# File 'lib/dash/cli/base.rb', line 24 def legacy_project_directory_warned @legacy_project_directory_warned end |