Class: Eien::Apps::CreateTask

Inherits:
Task
  • Object
show all
Defined in:
lib/eien/apps/create_task.rb

Instance Attribute Summary collapse

Attributes inherited from Task

#context, #namespace, #task_config

Instance Method Summary collapse

Methods included from Helpers::TimeHelpers

#summarize_age

Constructor Details

#initialize(context, name, namespace) ⇒ CreateTask

Returns a new instance of CreateTask.



8
9
10
11
12
# File 'lib/eien/apps/create_task.rb', line 8

def initialize(context, name, namespace)
  @name = name
  @spec_namespace = namespace
  super(context, nil)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/eien/apps/create_task.rb', line 6

def name
  @name
end

#spec_namespaceObject (readonly)

Returns the value of attribute spec_namespace.



6
7
8
# File 'lib/eien/apps/create_task.rb', line 6

def spec_namespace
  @spec_namespace
end

Instance Method Details

#run!Object



14
15
16
17
# File 'lib/eien/apps/create_task.rb', line 14

def run!
  create_app!
  ensure_namespace!
end