Sha256: 26739eff1775053941f01e2e55fd1dccdce30078eb0a337d16de7140dc7abea2

Contents?: true

Size: 644 Bytes

Versions: 21

Compression:

Stored size: 644 Bytes

Contents

module Datahen
  class CLI < Thor
    class AccountDeployKey < Thor
      package_name "account deploy_key"
      def self.banner(command, namespace = nil, subcommand = false)
        "#{basename} #{@package_name} #{command.usage}"
      end

      desc "show", "Show public deploy key"
      def show()
        client = Client::DeployKey.new()
        puts "#{client.find()}"
      end

      desc "recreate", "Recreate public deploy key"
      long_desc <<-LONGDESC
        Recreate public deploy key.
      LONGDESC
      def recreate()
        client = Client::DeployKey.new()
        puts "#{client.create()}"
      end
    end
  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
datahen-1.6.3 lib/datahen/cli/account_deploy_key.rb
datahen-1.6.2 lib/datahen/cli/account_deploy_key.rb
datahen-1.6.1 lib/datahen/cli/account_deploy_key.rb
datahen-1.6.0 lib/datahen/cli/account_deploy_key.rb
datahen-1.5.3 lib/datahen/cli/account_deploy_key.rb
datahen-1.5.2 lib/datahen/cli/account_deploy_key.rb
datahen-1.5.1 lib/datahen/cli/account_deploy_key.rb
datahen-1.4.0 lib/datahen/cli/account_deploy_key.rb
datahen-1.3.2 lib/datahen/cli/account_deploy_key.rb
datahen-1.3.1 lib/datahen/cli/account_deploy_key.rb
datahen-1.3.0 lib/datahen/cli/account_deploy_key.rb
datahen-1.2.3 lib/datahen/cli/account_deploy_key.rb
datahen-1.2.2 lib/datahen/cli/account_deploy_key.rb
datahen-1.2.1 lib/datahen/cli/account_deploy_key.rb
datahen-1.1.2 lib/datahen/cli/account_deploy_key.rb
datahen-1.1.1 lib/datahen/cli/account_deploy_key.rb
datahen-1.0.3 lib/datahen/cli/account_deploy_key.rb
datahen-1.0.2 lib/datahen/cli/account_deploy_key.rb
datahen-1.0.1 lib/datahen/cli/account_deploy_key.rb
datahen-1.0.0 lib/datahen/cli/account_deploy_key.rb