Module: Dockly

Defined in:
lib/dockly.rb,
lib/dockly/version.rb,
lib/dockly/bash_builder.rb,
lib/dockly/aws/s3_writer.rb

Defined Under Namespace

Modules: AWS, BuildCache, History Classes: AbstractCommand, BashBuilder, BuildCacheCommand, BuildCommand, Cli, Deb, Docker, DockerCommand, Foreman, ListCommand, Rpm, TarDiff

Constant Summary collapse

LOAD_FILE =
'dockly.rb'
VERSION =
'2.6.0'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#instance ⇒ Object (readonly)

Returns the value of attribute instance.



10
11
12
# File 'lib/dockly.rb', line 10

def instance
  @instance
end

Class Method Details

.deb ⇒ Object

.debs ⇒ Object

.docker ⇒ Object

.dockers ⇒ Object

.foreman ⇒ Object

.foremans ⇒ Object

.git_sha ⇒ Object

Returns the value of attribute git_sha.



10
11
12
# File 'lib/dockly.rb', line 10

def git_sha
  @git_sha
end

.inst ⇒ Object



29
30
31
# File 'lib/dockly.rb', line 29

def inst
  @instance ||= load_inst
end

.load_file ⇒ Object



25
26
27
# File 'lib/dockly.rb', line 25

def load_file
  @load_file || LOAD_FILE
end

.load_file=(value) ⇒ Object

Sets the attribute load_file

Parameters:

  • value —

    the value to set the attribute load_file to.



11
12
13
# File 'lib/dockly.rb', line 11

def load_file=(value)
  @load_file = value
end

.load_inst ⇒ Object



33
34
35
36
37
38
39
# File 'lib/dockly.rb', line 33

def load_inst
  setup.tap do |state|
    if File.exists?(load_file)
      instance_eval(IO.read(load_file), load_file)
    end
  end
end

.rpm ⇒ Object

.rpms ⇒ Object

.setup ⇒ Object



41
42
43
44
45
46
47
48
# File 'lib/dockly.rb', line 41

def setup
  {
    :debs => Dockly::Deb.instances,
    :rpms => Dockly::Rpm.instances,
    :dockers => Dockly::Docker.instances,
    :foremans => Dockly::Foreman.instances
  }
end