Module: Dapp::Deployment::Config::Directive::App::InstanceMethods

Included in:
Dapp::Deployment::Config::Directive::App, Group
Defined in:
lib/dapp/deployment/config/directive/app/instance_methods.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_dimgObject (readonly)

Returns the value of attribute _dimg.



7
8
9
# File 'lib/dapp/deployment/config/directive/app/instance_methods.rb', line 7

def _dimg
  @_dimg
end

#_exposeObject (readonly)

Returns the value of attribute _expose.



7
8
9
# File 'lib/dapp/deployment/config/directive/app/instance_methods.rb', line 7

def _expose
  @_expose
end

#_migrateObject (readonly)

Returns the value of attribute _migrate.



7
8
9
# File 'lib/dapp/deployment/config/directive/app/instance_methods.rb', line 7

def _migrate
  @_migrate
end

#_namespaceObject (readonly)

Returns the value of attribute _namespace.



7
8
9
# File 'lib/dapp/deployment/config/directive/app/instance_methods.rb', line 7

def _namespace
  @_namespace
end

Class Method Details

.included(base) ⇒ Object



9
10
11
# File 'lib/dapp/deployment/config/directive/app/instance_methods.rb', line 9

def self.included(base)
  base.include(Namespace::InstanceMethods)
end

Instance Method Details

#dimg(name) ⇒ Object



13
14
15
# File 'lib/dapp/deployment/config/directive/app/instance_methods.rb', line 13

def dimg(name)
  @_dimg = name
end

#expose(&blk) ⇒ Object



27
28
29
# File 'lib/dapp/deployment/config/directive/app/instance_methods.rb', line 27

def expose(&blk)
  directive_eval(_expose, &blk)
end

#migrate(cmd) ⇒ Object



31
32
33
# File 'lib/dapp/deployment/config/directive/app/instance_methods.rb', line 31

def migrate(cmd)
  sub_directive_eval { @_migrate = cmd }
end

#namespace(name, &blk) ⇒ Object



17
18
19
20
21
22
23
24
25
# File 'lib/dapp/deployment/config/directive/app/instance_methods.rb', line 17

def namespace(name, &blk)
  (_namespace[name] ||= begin
    Namespace.new(name, dapp: dapp).tap do |namespace|
      _namespace[name] = namespace
    end
  end).tap do |namespace|
    directive_eval(namespace, &blk)
  end
end