Method: Cluster#release

Defined in:
lib/cluster.rb

#release(*params) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
# File 'lib/cluster.rb', line 57

def release(*params)
  klass = @sub.release_class
  env, tag = params
  if tag
    klass.find(env, tag) or klass.create(:environment => env, :tag => tag)
  elsif env
    klass.current(env)
  else
    nil
  end
end