Sha256: 1e9841d5e3dda6a7215733d4a663c2fdafcd54cfd6125c9f9853aae4b218810b

Contents?: true

Size: 898 Bytes

Versions: 142

Compression:

Stored size: 898 Bytes

Contents

module Jets::Commands
  class Dynamodb < Jets::Commands::Base
    autoload :Migrator, 'jets/commands/dynamodb/migrator'
    autoload :Migrate, 'jets/commands/dynamodb/migrate'

    desc "migrate [path]", "Runs migrations"
    long_desc Help.text('dynamodb:migrate')
    def migrate(path)
      Migrator.new(path, options).run
    end

    desc "generate [name]", "Creates a migration for a DynamoDB table"
    long_desc Help.text('dynamodb:generate')
    option :partition_key, default: "id:string:hash", desc: "table's partition key"
    option :sort_key, default: nil, desc: "table's sort key"
    option :table_name, desc: "override the the conventional table name"
    option :table_action, desc: "create_table or update_table. Defaults to convention based on the name of the migration."
    def generate(name)
      Dynomite::Migration::Generator.new(name, options).generate
    end
  end
end

Version data entries

142 entries across 142 versions & 2 rubygems

Version Path
jets-1.9.7 lib/jets/commands/dynamodb.rb
jets-1.9.6 lib/jets/commands/dynamodb.rb
jets-1.9.5 lib/jets/commands/dynamodb.rb
jets-1.9.4 lib/jets/commands/dynamodb.rb
jets-1.9.3 lib/jets/commands/dynamodb.rb
jets-1.9.2 lib/jets/commands/dynamodb.rb
jets-1.9.1 lib/jets/commands/dynamodb.rb
jets-1.9.0 lib/jets/commands/dynamodb.rb
jets-1.8.14 lib/jets/commands/dynamodb.rb
jets-1.8.13 lib/jets/commands/dynamodb.rb
jets-1.8.12 lib/jets/commands/dynamodb.rb
jets-1.8.11 lib/jets/commands/dynamodb.rb
jets-1.8.10 lib/jets/commands/dynamodb.rb
jets-1.8.9 lib/jets/commands/dynamodb.rb
jets-1.8.8 lib/jets/commands/dynamodb.rb
jets-1.8.7 lib/jets/commands/dynamodb.rb
jets-1.8.6 lib/jets/commands/dynamodb.rb
jets-1.8.5 lib/jets/commands/dynamodb.rb
jets-1.8.4 lib/jets/commands/dynamodb.rb
jets-1.8.3 lib/jets/commands/dynamodb.rb