Class: Website::Create
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Website::Create
- Defined in:
- lib/meerpush/rake/website.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(name = :create) {|@w.site| ... } ⇒ Create
constructor
A new instance of Create.
Constructor Details
#initialize(name = :create) {|@w.site| ... } ⇒ Create
Returns a new instance of Create.
21 22 23 24 25 26 |
# File 'lib/meerpush/rake/website.rb', line 21 def initialize(name = :create) @name = name @w = MeerPush::IIS7::WebsiteController.new yield @w.site if block_given? define end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
19 20 21 |
# File 'lib/meerpush/rake/website.rb', line 19 def name @name end |
Instance Method Details
#define ⇒ Object
28 29 30 31 32 33 |
# File 'lib/meerpush/rake/website.rb', line 28 def define task name do Website.log 'Creating website' @w.create end end |