Sha256: 681ac303e4ccf775c33f4bb17dd7f354eeca18792f0157ec8fbc1a33422a0078

Contents?: true

Size: 590 Bytes

Versions: 6

Compression:

Stored size: 590 Bytes

Contents

module SolusVM
  class GeneralCLI < BaseCLI

    desc "templates TYPE", "Lists existing templates for a given type [openvz|xen|xen hvm|kvm]"
    def templates(type)
      output api.templates(type)
    end

    desc "plans TYPE", "Lists existing plans for a given type [openvz|xen|xen hvm|kvm]"
    def plans(type)
      output api.plans(type)
    end

    desc "isos TYPE", "Lists existing isos for a given type [openvz|xen|xen hvm|kvm]"
    def isos(type)
      output api.isos(type)
    end

    private

    def api
      @general ||= SolusVM::General.new(api_params)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solusvm-2.0.1.beta6 lib/solusvm/cli/general_cli.rb
solusvm-2.0.0.beta6 lib/solusvm/cli/general_cli.rb
solusvm-2.0.0.beta5 lib/solusvm/cli/general_cli.rb
solusvm-2.0.0.beta4 lib/solusvm/cli/general_cli.rb
solusvm-2.0.0.beta2 lib/solusvm/cli/general_cli.rb
solusvm-2.0.0.beta1 lib/solusvm/cli/general_cli.rb