Sha256: cb121e4762b9e6989b2c5929ff17481552ea75bb5eb1bcbef46351702b591ac3
Contents?: true
Size: 584 Bytes
Versions: 9
Compression:
Stored size: 584 Bytes
Contents
Sunzi::Dependency.load('highline') module Sunzi module Cloud class Base include Sunzi::Utility def self.choose(cli, target) case target when 'linode' Cloud::Linode.new(cli) when 'ec2' Cloud::EC2.new(cli) else abort_with "#{target} is not valid!" end end def initialize(cli) @cli = cli @ui = HighLine.new end def ask(question, answer_type, &details) @ui.ask(@ui.color(question, :green, :bold), answer_type, &details) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems