Class: ManifestsPlugin

Inherits:
CF::App::Base show all
Includes:
CFManifests
Defined in:
lib/manifests/plugin.rb

Constant Summary

Constants included from CFManifests

CFManifests::MANIFEST_FILE

Class Method Summary collapse

Methods included from CFManifests

#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 CF::App::Base

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

Methods included from LoginRequirements

#precondition

Methods inherited from CF::CLI

#add_exception_name_to_msg, #build_client, #check_logged_in, #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, #log_error_and_dump_crashlog, #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 CF::Spacing

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

Methods included from CF::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