Class: ManifestsPlugin

Inherits:
JDC::App::Base show all
Includes:
JDCManifests
Defined in:
lib/manifests/plugin.rb

Constant Summary

Constants included from JDCManifests

JDCManifests::MANIFEST_FILE

Class Method Summary collapse

Methods included from JDCManifests

#all_apps, #apps_in_manifest, #check_attributes!, #check_manifest!, #create_manifest_for, #current_apps, #error_message_for_attribute, #find_apps, #known_manifest_attributes, #load_manifest, #manifest, #manifest_file, #resolve_symbol, #save_manifest

Methods inherited from JDC::App::Base

#app_status, #human_mb, #human_size, #megabytes, #memory_choices, #state_color

Methods included from LoginRequirements

#precondition

Methods inherited from JDC::CLI

#add_exception_name_to_msg, #build_client, #check_key, #check_logged_in, #check_organization_and_space, #check_target, client, #client, client=, #client_target, #color_enabled?, #debug?, #default_action, #ensure_config_dir, #err, #execute, #fail, #fail_unknown, #force?, #formatted_exception_output, #help, #help_header, #invalidate_client, #log_error, #name_list, #normalize_targets_info, #one_of, #quiet?, #remove_target_info, #sane_target_url, #save_target_info, #save_targets, #save_token_if_it_changes, #set_target, #table, #target_info, #targets_info, #user_colors, #verbose?, #wrap_errors

Methods included from JDC::Spacing

#indented, #justify, #line, #lines, #quiet?, #spaced, #start_line, #tabular, #text_width, #trim_escapes

Methods included from JDC::Interactive

#ask, #handler, #input_state, #list_choices, #prompt, #show_default

Class Method Details

.default_to_app_from_manifest(command, fail_without_app) ⇒ Object



8
9
10
11
12
13
# File 'lib/manifests/plugin.rb', line 8

def self.default_to_app_from_manifest(command, fail_without_app)
  name_made_optional = change_argument(command, :app, :optional)
  around(command) do |cmd, input|
    wrap_with_optional_name(name_made_optional, cmd, input, fail_without_app)
  end
end