Sha256: 661ae47d5d10894c09e5769adfc21d0c23b9984ed77b69e2dfcbb294090a61db

Contents?: true

Size: 723 Bytes

Versions: 3

Compression:

Stored size: 723 Bytes

Contents

command :init do |c|

  c.syntax = 'loom init [options]'
  c.summary = 'Configures the working directory as a loom project.'
  c.description = 'Configuration for the loom toolbelt is done through a .loomconfig file. All projects that wish to use the loom commands must be configured with a .loomconfig file in the project root. calling "loom init" automatically configures the project.'
  c.example 'initialize and configure loom project', 'loom init'
  c.example 'initialize in a specific directory', 'loom init --dir /Path/To/My/Project'
  c.option '--dir STRING', String, 'Specify a directory to configure'

  c.action do |args, options|

    options.default :dir => ""

    configure_directory options.dir

  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loom-0.0.46 lib/loom/init.rb
loom-0.0.45 lib/loom/init.rb
loom-0.0.43 lib/loom/init.rb