Sha256: 6c7a94642a51eada37cd1f55312db443af64ce838fd55934fe6005651b30409b

Contents?: true

Size: 451 Bytes

Versions: 15

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

module Jets
  module Command
    class NewCommand < Base # :nodoc:
      no_commands do
        def help
          Jets::Command.invoke :application, [ "--help" ]
        end
      end

      def perform(*)
        say "Can't initialize a new Jets application within the directory of another, please change to a non-Jets directory first.\n"
        say "Type 'jets' for help."
        exit 1
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/commands/new/new_command.rb
jets-5.0.12 lib/jets/commands/new/new_command.rb
jets-5.0.11 lib/jets/commands/new/new_command.rb
jets-5.0.10 lib/jets/commands/new/new_command.rb
jets-5.0.9 lib/jets/commands/new/new_command.rb
jets-5.0.8 lib/jets/commands/new/new_command.rb
jets-5.0.7 lib/jets/commands/new/new_command.rb
jets-5.0.6 lib/jets/commands/new/new_command.rb
jets-5.0.5 lib/jets/commands/new/new_command.rb
jets-5.0.4 lib/jets/commands/new/new_command.rb
jets-5.0.3 lib/jets/commands/new/new_command.rb
jets-5.0.2 lib/jets/commands/new/new_command.rb
jets-5.0.1 lib/jets/commands/new/new_command.rb
jets-5.0.0 lib/jets/commands/new/new_command.rb
jets-5.0.0.beta1 lib/jets/commands/new/new_command.rb