Class: OpenHAB::Karaf::Tasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- OpenHAB::Karaf::Tasks
- Defined in:
- lib/openhab/karaf/tasks.rb
Overview
Rake tasks for maintaining a local test instance.
Instance Method Summary collapse
-
#initialize ⇒ Tasks
constructor
Define karaf:rebuild and karaf:refresh in the current Rake application.
Constructor Details
#initialize ⇒ Tasks
Define karaf:rebuild and karaf:refresh in the current Rake application.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/openhab/karaf/tasks.rb', line 14 def initialize super namespace :karaf do desc "Remove and rebuild the .karaf test instance" task :rebuild do run("prepare(rebuild: true)") end desc "Refresh JSONDB and persistence data in the .karaf test instance" task :refresh do run("refresh") end end end |