Sha256: 00026e6d58cedd0669f9c61c4d46fa3e0b94cac574cd71d31217e4c96db4a3d2

Contents?: true

Size: 350 Bytes

Versions: 7

Compression:

Stored size: 350 Bytes

Contents

require_relative '__base__'
module Eucalypt
  class CLI < Thor
    using Colorize
    desc "rake [TASK]", "Run a rake task".colorize(:grey)
    def rake(task)
      directory = File.expand_path('.')
      if Eucalypt.app? directory
        exec "bundle exec rake #{task}"
      else
        Eucalypt::Error.wrong_directory
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eucalypt-0.9.0 lib/eucalypt/core/cli/rake.rb
eucalypt-0.8.0 lib/eucalypt/core/cli/rake.rb
eucalypt-0.7.2 lib/eucalypt/core/cli/rake.rb
eucalypt-0.7.1 lib/eucalypt/core/cli/rake.rb
eucalypt-0.7.0 lib/eucalypt/core/cli/rake.rb
eucalypt-0.6.2 lib/eucalypt/core/cli/rake.rb
eucalypt-0.6.1 lib/eucalypt/core/cli/rake.rb