Sha256: 27b704282dd1165894be2e1972e48ea4ee48410d3cbc9a9a27efadea220cc728

Contents?: true

Size: 1.31 KB

Versions: 24

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true

module Takelage
  # takelage info project
  class InfoProject < SubCommandBase
    include LoggingModule
    include SystemModule
    include ConfigModule
    include ProjectModule

    #
    # info project active
    #
    desc 'active', 'Print active project info'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Print active project info
    LONGDESC
    # Print active project info.
    def active
      project_active_yaml = hash_to_yaml(project.active)
      exit false if project_active_yaml == false
      say project_active_yaml
      true
    end

    #
    # info project private
    #
    desc 'private', 'Print private project info'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Print private project info
    LONGDESC
    # Print private project info.
    def private
      project_private_yaml = hash_to_yaml(project.private)
      exit false if project_private_yaml == false
      say project_private_yaml
      true
    end

    #
    # info project main
    #
    desc 'main', 'Print main project info'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Print main project info
    LONGDESC
    # Print main project info.
    def main
      project_main_yaml = hash_to_yaml(project.main)
      exit false if project_main_yaml == false
      say project_main_yaml
      true
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
takelage-0.22.1 lib/takelage/info/project/cli.rb
takelage-0.22.0 lib/takelage/info/project/cli.rb
takelage-0.21.1 lib/takelage/info/project/cli.rb
takelage-0.21.0 lib/takelage/info/project/cli.rb
takelage-0.20.2 lib/takelage/info/project/cli.rb
takelage-0.20.1 lib/takelage/info/project/cli.rb
takelage-0.20.0 lib/takelage/info/project/cli.rb
takelage-0.19.2 lib/takelage/info/project/cli.rb
takelage-0.19.1 lib/takelage/info/project/cli.rb
takelage-0.19.0 lib/takelage/info/project/cli.rb
takelage-0.18.1 lib/takelage/info/project/cli.rb
takelage-0.18.0 lib/takelage/info/project/cli.rb
takelage-0.17.1 lib/takelage/info/project/cli.rb
takelage-0.17.0 lib/takelage/info/project/cli.rb
takelage-0.16.0 lib/takelage/info/project/cli.rb
takelage-0.15.1 lib/takelage/info/project/cli.rb
takelage-0.15.0 lib/takelage/info/project/cli.rb
takelage-0.14.5 lib/takelage/info/project/cli.rb
takelage-0.14.4 lib/takelage/info/project/cli.rb
takelage-0.14.3 lib/takelage/info/project/cli.rb