Class: Cany::Specification
- Inherits:
-
Object
- Object
- Cany::Specification
- Defined in:
- lib/cany/specification.rb,
lib/cany/specification/dsl.rb
Defined Under Namespace
Classes: DSL
Constant Summary collapse
- EXT =
'canspec'
Instance Attribute Summary collapse
-
#base_dir ⇒ Object
Returns the value of attribute base_dir.
-
#binary ⇒ Object
Returns the value of attribute binary.
-
#build ⇒ Object
Returns the value of attribute build.
-
#description ⇒ Object
Returns the value of attribute description.
-
#licence ⇒ Object
Returns the value of attribute licence.
-
#maintainer_email ⇒ Object
Returns the value of attribute maintainer_email.
-
#maintainer_name ⇒ Object
Returns the value of attribute maintainer_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#recipes ⇒ Object
Returns the value of attribute recipes.
-
#version ⇒ Object
Returns the value of attribute version.
-
#website ⇒ Object
Returns the value of attribute website.
Instance Method Summary collapse
-
#initialize(dsl = Cany::Specification::DSL, &block) ⇒ Specification
constructor
A new instance of Specification.
- #setup(dsl = Cany::Specification::DSL, &block) ⇒ Object
Constructor Details
#initialize(dsl = Cany::Specification::DSL, &block) ⇒ Specification
Returns a new instance of Specification.
12 13 14 15 |
# File 'lib/cany/specification.rb', line 12 def initialize(dsl=Cany::Specification::DSL, &block) @recipes = [] setup dsl, &block end |
Instance Attribute Details
#base_dir ⇒ Object
Returns the value of attribute base_dir.
9 10 11 |
# File 'lib/cany/specification.rb', line 9 def base_dir @base_dir end |
#binary ⇒ Object
Returns the value of attribute binary.
10 11 12 |
# File 'lib/cany/specification.rb', line 10 def binary @binary end |
#build ⇒ Object
Returns the value of attribute build.
10 11 12 |
# File 'lib/cany/specification.rb', line 10 def build @build end |
#description ⇒ Object
Returns the value of attribute description.
8 9 10 |
# File 'lib/cany/specification.rb', line 8 def description @description end |
#licence ⇒ Object
Returns the value of attribute licence.
8 9 10 |
# File 'lib/cany/specification.rb', line 8 def licence @licence end |
#maintainer_email ⇒ Object
Returns the value of attribute maintainer_email.
8 9 10 |
# File 'lib/cany/specification.rb', line 8 def maintainer_email @maintainer_email end |
#maintainer_name ⇒ Object
Returns the value of attribute maintainer_name.
8 9 10 |
# File 'lib/cany/specification.rb', line 8 def maintainer_name @maintainer_name end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/cany/specification.rb', line 8 def name @name end |
#recipes ⇒ Object
Returns the value of attribute recipes.
9 10 11 |
# File 'lib/cany/specification.rb', line 9 def recipes @recipes end |
#version ⇒ Object
Returns the value of attribute version.
8 9 10 |
# File 'lib/cany/specification.rb', line 8 def version @version end |
#website ⇒ Object
Returns the value of attribute website.
8 9 10 |
# File 'lib/cany/specification.rb', line 8 def website @website end |
Instance Method Details
#setup(dsl = Cany::Specification::DSL, &block) ⇒ Object
17 18 19 |
# File 'lib/cany/specification.rb', line 17 def setup(dsl=Cany::Specification::DSL, &block) dsl.new(self).exec(&block) end |