Sha256: dfbbab133e870cb874707e1e0d52e100d32c5ec8569faf56852152489548435a

Contents?: true

Size: 372 Bytes

Versions: 27

Compression:

Stored size: 372 Bytes

Contents

require_relative '__base__'
module Eucalypt
  class CLI < Thor
    using Colorize
    desc "console", "Interactive console with all files loaded".colorize(:grey)
    def console
      directory = File.expand_path('.')
      if Eucalypt.app? directory
        exec 'bundle exec irb -r ./app.rb'
      else
        Eucalypt::Error.wrong_directory
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
eucalypt-0.7.2 lib/eucalypt/core/cli/console.rb
eucalypt-0.7.1 lib/eucalypt/core/cli/console.rb
eucalypt-0.7.0 lib/eucalypt/core/cli/console.rb
eucalypt-0.6.2 lib/eucalypt/core/cli/console.rb
eucalypt-0.6.1 lib/eucalypt/core/cli/console.rb
eucalypt-0.6.0 lib/eucalypt/core/cli/console.rb
eucalypt-0.5.4 lib/eucalypt/core/cli/console.rb
eucalypt-0.5.3 lib/eucalypt/core/cli/console.rb
eucalypt-0.5.2 lib/eucalypt/core/cli/console.rb
eucalypt-0.5.1 lib/eucalypt/core/cli/console.rb
eucalypt-0.5.0 lib/eucalypt/core/cli/console.rb
eucalypt-0.4.2 lib/eucalypt/core/cli/console.rb
eucalypt-0.4.1 lib/eucalypt/core/cli/console.rb
eucalypt-0.4.0 lib/eucalypt/core/cli/console.rb
eucalypt-0.3.5 lib/eucalypt/core/cli/console.rb
eucalypt-0.3.4 lib/eucalypt/core/cli/console.rb
eucalypt-0.3.3 lib/eucalypt/core/cli/console.rb
eucalypt-0.3.2 lib/eucalypt/core/cli/console.rb
eucalypt-0.3.1 lib/eucalypt/core/cli/console.rb
eucalypt-0.3.0 lib/eucalypt/core/cli/console.rb