Sha256: 622648ede1bb7470a84b774c63b32d3a976e5429e22c60076cab5427b7ab73f8
Contents?: true
Size: 732 Bytes
Versions: 3
Compression:
Stored size: 732 Bytes
Contents
module Aptible module CLI module Subcommands module Apps # rubocop:disable MethodLength def self.included(thor) thor.class_eval do include Helpers::Account desc 'apps:create HANDLE', 'Create a new application' option :account define_method 'apps:create' do |handle| account = ensure_account(options) app = account.create_app(handle: handle) if app.errors.any? fail app.errors.full_messages.first else say "App #{handle} created!" end end end end # rubocop:enable MethodLength end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aptible-cli-0.3.7 | lib/aptible/cli/subcommands/apps.rb |
aptible-cli-0.3.6 | lib/aptible/cli/subcommands/apps.rb |
aptible-cli-0.3.5 | lib/aptible/cli/subcommands/apps.rb |