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.45.8 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.6 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.5 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.4 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.3 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.2 lib/takeltau/init/takelage/cli.rb
takeltau-0.45.0 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.42 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.41 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.39 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.37 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.36 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.35 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.29 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.27 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.24 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.23 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.19 lib/takeltau/init/takelage/cli.rb
takeltau-0.44.18 lib/takeltau/init/takelage/cli.rb