Sha256: 449113acce54da4ec83878c93c8bac49b3bc34baedcdc478dd64f43e9edad25e

Contents?: true

Size: 1.3 KB

Versions: 39

Compression:

Stored size: 1.3 KB

Contents

# frozen_string_literal: true

module Takeltau
  # takeltau init takelage
  class InitTakelage < SubCommandBase
    include Thor::Actions
    include LoggingModule
    include SystemModule
    include ConfigModule
    include ProjectModule
    include GitCheckClean
    include GitCheckWorkspace
    include InitLib
    include InitTakelageRake

    argument :name

    # Define templates
    def initialize(args = [], local_options = {}, configuration = {})
      # initialize thor parent class
      super

      @gitignore = {
        name: '.gitignore',
        template: '../templates/gitignore.tt'
      }
      @hgclone = {
        name: 'hgclone',
        template: 'templates/hgclone.tt'
      }
      @projectyml = {
        name: 'project.yml',
        template: 'templates/projectyml.tt'
      }
      @rakefile = {
        name: 'Rakefile',
        template: '../templates/Rakefile.tt'
      }
    end

    # Provide template path for Thor:Actions
    def self.source_root
      File.dirname(__FILE__)
    end

    #
    # init takelage rake
    #
    desc 'rake [NAME]', 'Initialize takelage rake project [NAME]'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Initialize takelage rake project [NAME]
    LONGDESC
    # Initialize takelage rake project [NAME].
    def rake
      exit init_takelage_rake
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
takeltau-0.46.9 lib/takeltau/init/takelage/cli.rb
takeltau-0.46.8 lib/takeltau/init/takelage/cli.rb
takeltau-0.46.5 lib/takeltau/init/takelage/cli.rb
takeltau-0.46.1 lib/takeltau/init/takelage/cli.rb
takeltau-0.46.0 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.27 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.26 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.24 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.23 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.22 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.21 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.19 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.17 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.16 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.14 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.13 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.12 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.11 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.10 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.9 lib/takeltau/init/takelage/cli.rb