Class: DNApi::Recipe

Inherits:
Struct
  • Object
show all
Defined in:
lib/dnapi/recipe.rb

Constant Summary collapse

Monit =
new(:name => 'monit')
Memcached =
new(:name => 'memcached')
Nginx =
new(:name => 'nginx')
NginxPassenger =
new(:name => 'passenger::nginx')
Passenger =
new(:name => 'passenger')
Passenger3 =
new(:name => 'passenger3')
ApachePassenger =
new(:name => 'passenger::apache')
Mongrel =
new(:name => 'mongrel')
Unicorn =
new(:name => 'unicorn')
Mysql51 =
new(:name => 'mysql5_1')
Mysql55 =
new(:name => 'mysql5_5')
Nginxtcp =
new(:name => 'nginxtcp')
Node =
new(:name => 'node::component')
Trinidad =
new(:name => 'trinidad')
Thin =
new(:name => 'thin')
Puma =
new(:name => 'puma')
PHP =
new(:name => 'php')

Instance Attribute Summary collapse

Attributes inherited from Struct

#parent

Class Method Summary collapse

Methods inherited from Struct

#==, _many, #_many, #_many_values, _ones, #_ones, #_ones_values, _umembers, belongs_to, from, #initialize, #inspect, many, map, one, #to_hash, #umember_inspect, unserialized_member

Methods included from Test::Ext

#default_fauxture_name, #fixture, #generate, #generate_attributes, #pick

Constructor Details

This class inherits a constructor from DNApi::Struct

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/dnapi/recipe.rb', line 2

def name
  @name
end

Class Method Details

.allObject



25
26
27
28
29
# File 'lib/dnapi/recipe.rb', line 25

def self.all
  [Monit, Memcached, Nginx, NginxPassenger, ApachePassenger,
   Mongrel, Unicorn, Mysql51, Mysql55, Nginxtcp, Node, 
   Trinidad, Thin, Puma, PHP]
end

.defaultsObject



21
22
23
# File 'lib/dnapi/recipe.rb', line 21

def self.defaults
  [Memcached, Monit]
end