Sha256: a3c592082f1de785918b8e55b8cb72723a56a2423db0dc3264a3b1ace4c0f55c

Contents?: true

Size: 1.47 KB

Versions: 10

Compression:

Stored size: 1.47 KB

Contents

# frozen_string_literal: true

module Takelage
  # takelage bit requiere
  class BitRequire < SubCommandBase
    include LoggingModule
    include ConfigModule
    include SystemModule
    include GitCheckClean
    include GitCheckBit
    include GitCheckWorkspace
    include BitCheckWorkspace
    include BitScopeList
    include BitScopeAdd
    include BitClipboardLib
    include BitClipboardCopy
    include BitClipboardPaste
    include BitRequireLib
    include BitRequireExport
    include BitRequireImport

    # Initialize bit require
    def initialize(args = [], local_options = {}, configuration = {})
      # initialize thor parent class
      super args, local_options, configuration

      @bit_require_file = config.active['bit_require_file']
    end

    #
    # bit require export
    #
    desc 'export', 'Create requirements file with bit components.'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Create requirements file with bit components
    LONGDESC
    # Create requirements file with bit components.
    def export
      bit_require_yml = bit_require_export
      exit false if bit_require_yml == false
      say bit_require_yml
      true
    end

    #
    # bit require import
    #
    desc 'import', 'Import bit components from requirements file.'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Import bit components from requirements file
    LONGDESC
    # Import bit components from requirements file.
    def import
      exit bit_require_import
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
takelage-0.33.1 lib/takelage/bit/require/cli.rb
takelage-0.32.4 lib/takelage/bit/require/cli.rb
takelage-0.32.3 lib/takelage/bit/require/cli.rb
takelage-0.32.1 lib/takelage/bit/require/cli.rb
takelage-0.32.0 lib/takelage/bit/require/cli.rb
takelage-0.31.0 lib/takelage/bit/require/cli.rb
takelage-0.30.6 lib/takelage/bit/require/cli.rb
takelage-0.30.5 lib/takelage/bit/require/cli.rb
takelage-0.30.1 lib/takelage/bit/require/cli.rb
takelage-0.30.0 lib/takelage/bit/require/cli.rb