Class: WTT::Core::AnchorTasks
- Inherits:
-
Object
- Object
- WTT::Core::AnchorTasks
- Includes:
- Rake::DSL
- Defined in:
- lib/wtt/core/anchor_task.rb
Overview
Helper to declare take tasks for anchor raise/drop.
Instance Method Summary collapse
- #define_anchor_tasks ⇒ Object
-
#initialize ⇒ AnchorTasks
constructor
A new instance of AnchorTasks.
Constructor Details
#initialize ⇒ AnchorTasks
Returns a new instance of AnchorTasks.
11 12 13 |
# File 'lib/wtt/core/anchor_task.rb', line 11 def initialize define_anchor_tasks end |
Instance Method Details
#define_anchor_tasks ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/wtt/core/anchor_task.rb', line 15 def define_anchor_tasks namespace :wtt do desc 'Set the SHA for use in WTT' task 'anchor_drop' do WTT::Core.anchor_drop end desc 'Clear the SHA for use in WTT' task 'anchor_raise' do WTT::Core.anchor_raise end end end |