Sha256: eae93e10a8ab9da80e4a0e1f228b400add6dae07549bcc6bc9dd8e00be177ba3

Contents?: true

Size: 352 Bytes

Versions: 12

Compression:

Stored size: 352 Bytes

Contents

require_relative '__base__'
module Eucalypt
  class CLI < Thor
    using Colorize
    desc "rake", "Run all database migrations".colorize(:grey)
    def rake
      directory = File.expand_path('.')
      if Eucalypt.app? directory
        exec "bundle exec rake db:migrate"
      else
        Eucalypt::Error.wrong_directory
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
eucalypt-0.6.0 lib/eucalypt/core/cli/rake.rb
eucalypt-0.5.4 lib/eucalypt/core/cli/rake.rb
eucalypt-0.5.3 lib/eucalypt/core/cli/rake.rb
eucalypt-0.5.2 lib/eucalypt/core/cli/rake.rb
eucalypt-0.5.1 lib/eucalypt/core/cli/rake.rb
eucalypt-0.5.0 lib/eucalypt/core/cli/rake.rb
eucalypt-0.4.2 lib/eucalypt/core/cli/rake.rb
eucalypt-0.4.1 lib/eucalypt/core/cli/rake.rb
eucalypt-0.4.0 lib/eucalypt/core/cli/rake.rb
eucalypt-0.3.5 lib/eucalypt/core/cli/rake.rb
eucalypt-0.3.4 lib/eucalypt/core/cli/rake.rb
eucalypt-0.3.3 lib/eucalypt/core/cli/rake.rb