Class: Fig::Command::Action::PublishLocal
- Inherits:
-
Object
- Object
- Fig::Command::Action::PublishLocal
- Includes:
- Fig::Command::Action, Role::HasNoSubAction, Role::Publish
- Defined in:
- lib/fig/command/action/publish_local.rb
Constant Summary
Constants included from Fig::Command::Action
Instance Attribute Summary
Attributes included from Fig::Command::Action
Instance Method Summary collapse
Methods included from Role::Publish
#allow_both_descriptor_and_file?, #apply_base_config?, #apply_config?, #base_package_can_come_from_descriptor?, #cares_about_asset_options?, #configure, #derive_publish_statements_from_environment_statements, #descriptor_requirement, #load_base_package?, #modifies_repository?, #publish?, #publish_preflight, #register_base_package?
Methods included from Role::HasNoSubAction
Methods included from Fig::Command::Action
#allow_both_descriptor_and_file?, #apply_base_config?, #apply_config?, #base_package_can_come_from_descriptor?, #cares_about_asset_options?, #configure, #descriptor_requirement, #execute_immediately_after_command_line_parse?, #list_dependencies?, #list_variables?, #load_base_package?, #modifies_repository?, #prepare_repository, #primary_option, #publish?, #register_base_package?, #remote_operation_necessary?, #reset_environment?, #retrieves_should_happen?
Instance Method Details
#execute ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/fig/command/action/publish_local.rb', line 21 def execute() publish_preflight() Fig::Logging.info "Publishing #{@descriptor.to_string()} locally." @execution_context.repository.publish_package( @publish_statements, @descriptor, :publish_local, @execution_context.base_package, false ) return EXIT_SUCCESS end |
#options ⇒ Object
17 18 19 |
# File 'lib/fig/command/action/publish_local.rb', line 17 def () return %w<--publish-local> end |