Sha256: cf623c9bcdc3b85beffb65ad7e121fee2909c6b1ef4530ed5ae3b9a9f380d8a6

Contents?: true

Size: 437 Bytes

Versions: 4

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

module Aid
  module Scripts
    class Init < Aid::Script
      def self.description
        'Sets up aid in your project'
      end

      def run
        step 'Creating .aid directory' do
          system! "mkdir -p #{aid_directory}"
        end

        puts
        puts 'All done! To create your first script, run '\
          "#{colorize(:green, 'aid new [script-name]')}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
aid-0.2.2 lib/aid/scripts/init.rb
abtion-aid-0.3.2 lib/aid/scripts/init.rb
abtion-aid-0.3.1 lib/aid/scripts/init.rb
abtion-aid-0.2.0 lib/aid/scripts/init.rb