Class: Shards::Workflow::CreateByApi

Inherits:
Base
  • Object
show all
Defined in:
lib/shards/workflow/create_by_api.rb

Instance Attribute Summary

Attributes inherited from Base

#answer, #blank_db, #client, #config, #current_loop, #domain, #flow, #location, #params, #pointer, #pointer_history, #site, #stage, #step, #wf

Instance Method Summary collapse

Methods inherited from Base

#add_ask_blank_db_step, #application_reload_shards_task, #ask_blank_db, #ask_for_exit, #ask_for_exit_and_restart, #ask_for_repeat, #ask_question, #check_database_presence_in_server, #check_domain_dns_presence, #check_domain_presence_in_sites, #check_fingerprints, #check_shard_presence_in_shards, #choose_one, #clean_repo_and_exit, #commit_changes, #create_database, #decamelize, #default_path, #dns_upsert, #file, #format_options, #get_file, #host, #initialize, #loop_step, #path, #previous_pointer, #puppet_agent_update, #raise_wrong_text, #run_step, #shared_file, #shared_steps, #start, #start_at, #validate_in_index, #validate_location, #validate_min_size, #validate_regex, #validate_stage, #validation, #yaml

Constructor Details

This class inherits a constructor from Shards::Workflow::Base

Instance Method Details

#output_message(message) ⇒ Object



14
15
16
# File 'lib/shards/workflow/create_by_api.rb', line 14

def output_message message
  message
end

#write_yaml_filesObject



9
10
11
12
# File 'lib/shards/workflow/create_by_api.rb', line 9

def write_yaml_files
  stage.add_domain domain
  site.add_site
end