class CiHelper::Installer
Responsible for create the setting file in the git repo
Attributes
target[R]
user_setting[R]
Public Class Methods
new(target, user_setting)
click to toggle source
# File lib/ci_helper/installer.rb, line 7 def initialize(target, user_setting) @target = target @user_setting = user_setting end
Public Instance Methods
install_ci_helper_config()
click to toggle source
# File lib/ci_helper/installer.rb, line 12 def install_ci_helper_config ci_config_file = File.join(target, CiHelper::CONFIG_FILE_NAME) result = File.open(ci_config_file, 'w') { |f| f.write(user_setting.to_yaml)} puts 'initialize success You can run the monitor now ' if result end