lib/milk_maid/cli.rb in milk_maid-0.2.6 vs lib/milk_maid/cli.rb in milk_maid-0.2.7
- old
+ new
@@ -28,9 +28,11 @@
batch.start
rescue ::MilkMaid::SensorException => e
puts e.message
end
+ default_task :monitor_batch
+
no_commands do
def get_sensor(sensor_type)
sensor_type ? ::MilkMaid::TemperatureSensor.new : ::MilkMaid::MockTemperatureSensor.new(options[:temperature].to_i - 20, options[:temperature].to_i + 30)
end