lib/poolparty/helpers/optioner.rb in auser-poolparty-0.2.66 vs lib/poolparty/helpers/optioner.rb in auser-poolparty-0.2.67
- old
+ new
@@ -90,6 +90,14 @@
def output_version
puts @version
end
end
+
+ def extract_cloud_from_options(o)
+ o.cloudname ? [cloud(o.cloudname.downcase.to_sym)] : clouds.collect {|n,cl| cl}
+ end
+
+ def extract_pool_from_options(o)
+ o.poolname ? [pool(o.poolname.downcase.to_sym)] : pools.collect {|n,pl| pl}
+ end
end
\ No newline at end of file