Sha256: 22dcdb391a4285f363664db30cb0e4961b5d6278dc0fd31cea6b59fc0bafe90a

Contents?: true

Size: 783 Bytes

Versions: 113

Compression:

Stored size: 783 Bytes

Contents

module Jets::Commands
  class Dynamodb < Jets::Commands::Base
    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

113 entries across 113 versions & 3 rubygems

Version Path
jets-4.0.12 lib/jets/commands/dynamodb.rb
jets-4.0.11 lib/jets/commands/dynamodb.rb
jets-4.0.10 lib/jets/commands/dynamodb.rb
jets-4.0.9 lib/jets/commands/dynamodb.rb
jets-4.0.8 lib/jets/commands/dynamodb.rb
jets-4.0.7 lib/jets/commands/dynamodb.rb
jets-4.0.6 lib/jets/commands/dynamodb.rb
jets-4.0.5 lib/jets/commands/dynamodb.rb
jets-4.0.4 lib/jets/commands/dynamodb.rb
jets-4.0.3 lib/jets/commands/dynamodb.rb
jets-4.0.2 lib/jets/commands/dynamodb.rb
jets-4.0.1 lib/jets/commands/dynamodb.rb
jets-4.0.0 lib/jets/commands/dynamodb.rb
jets-3.2.2 lib/jets/commands/dynamodb.rb
jets-3.2.1 lib/jets/commands/dynamodb.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/commands/dynamodb.rb
jets-3.2.0 lib/jets/commands/dynamodb.rb
jets-3.1.5 lib/jets/commands/dynamodb.rb
jets-3.1.4 lib/jets/commands/dynamodb.rb
jets-3.1.3 lib/jets/commands/dynamodb.rb