Class: Redbreast::Command::ConfigurationInstaller

Inherits:
Object
  • Object
show all
Includes:
Helper::General, Helper::Terminal
Defined in:
lib/redbreast/commands/configuration_installer.rb

Overview

Class for installing configuration

Constant Summary

Constants included from Helper::General

Helper::General::ESCAPE_KEYWORDS

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helper::General

#app_name, #bundles, #clean_case_name, #clean_enum_name, #clean_variable_name, #config, #escape_keyword_if_needed, #escape_with_underscore_if_needed, #indent, #programming_language, #upper_camel_case

Methods included from Helper::Terminal

#prompt, #success

Class Method Details

.initObject



9
10
11
# File 'lib/redbreast/commands/configuration_installer.rb', line 9

def self.init
  new.call
end

Instance Method Details

#callObject



13
14
15
16
17
18
19
# File 'lib/redbreast/commands/configuration_installer.rb', line 13

def call
  prompt.say('Adding generation script to xcode buid phases...')
  project = fetch_project
  configure_target project.targets.first
  project.save
  success('Build phase setup!')
end