Module: Dockly

Defined in:
lib/dockly.rb,
lib/dockly/version.rb

Defined Under Namespace

Modules: AWS, BuildCache Classes: AbstractCommand, BuildCacheCommand, BuildCommand, Cli, Deb, Docker, Foreman, ListCommand

Constant Summary collapse

LOAD_FILE =
'dockly.rb'
VERSION =
'1.5.8'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#instanceObject (readonly)

Returns the value of attribute instance.



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

def instance
  @instance
end

Class Method Details

.debObject

.debsObject

.dockerObject

.dockersObject

.foremanObject

.foremansObject

.git_shaObject

Returns the value of attribute git_sha.



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

def git_sha
  @git_sha
end

.instObject



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

def inst
  @instance ||= load_inst
end

.load_fileObject



20
21
22
# File 'lib/dockly.rb', line 20

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.



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

def load_file=(value)
  @load_file = value
end

.load_instObject



28
29
30
31
32
33
34
# File 'lib/dockly.rb', line 28

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

.setupObject



36
37
38
39
40
41
42
# File 'lib/dockly.rb', line 36

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