Module: Rebi

Extended by:
Rebi
Includes:
Log
Included in:
Rebi
Defined in:
lib/rebi.rb,
lib/rebi/ec2.rb,
lib/rebi/log.rb,
lib/rebi/error.rb,
lib/rebi/config.rb,
lib/rebi/version.rb,
lib/rebi/erb_helper.rb,
lib/rebi/zip_helper.rb,
lib/rebi/application.rb,
lib/rebi/environment.rb,
lib/rebi/init_service.rb,
lib/rebi/config_environment.rb

Overview

Dotenv.load

Defined Under Namespace

Modules: Log Classes: Application, Config, ConfigEnvironment, EB, EC2, Environment, ErbHelper, Error, InitService, ZipHelper

Constant Summary collapse

VERSION =
'0.4.3'

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Log

#colorize, #colorize_prefix, #error, #error_label, #h1, #h2, #h3, #h4, #hstatus, #log, #log_label

Instance Attribute Details

#config_fileObject

Returns the value of attribute config_file.



40
41
42
# File 'lib/rebi.rb', line 40

def config_file
  @config_file
end

Instance Method Details

#appObject



63
64
65
# File 'lib/rebi.rb', line 63

def app
  return Rebi::Application.get_or_create_application(config.app_name)
end

#config {|Rebi::Config.instance| ... } ⇒ Object

Yields:



67
68
69
70
# File 'lib/rebi.rb', line 67

def config
  yield Rebi::Config.instance if block_given?
  return Rebi::Config.instance
end

#eb(c = nil) ⇒ Object



47
48
49
# File 'lib/rebi.rb', line 47

def eb c=nil
  @@eb = Rebi::EB.new
end

#ec2Object



51
52
53
# File 'lib/rebi.rb', line 51

def ec2
  @@ec2_client = Rebi::EC2.new
end

#iamObject



55
56
57
# File 'lib/rebi.rb', line 55

def iam
  @@iam_client = Aws::IAM::Client.new
end

#init(stage_name, env_name) ⇒ Object



76
77
78
79
# File 'lib/rebi.rb', line 76

def init stage_name, env_name
  init = Rebi::InitService.new(stage_name, env_name)
  init.execute
end

#reload!Object



72
73
74
# File 'lib/rebi.rb', line 72

def reload!
  config.reload!
end

#rootObject



43
44
45
# File 'lib/rebi.rb', line 43

def root
  Dir.pwd
end

#s3Object



59
60
61
# File 'lib/rebi.rb', line 59

def s3
  @@s3_client = Aws::S3::Client.new
end