Sha256: 7a5446cba621d182e77e7cb75b6a93d534a72e80a5735e2337995989da800584

Contents?: true

Size: 1.56 KB

Versions: 92

Compression:

Stored size: 1.56 KB

Contents

# frozen_string_literal: true

module Takeltau
  # tau 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

    #
    # info project dir
    #
    desc 'dir', 'Print project root directory'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Print project root directory
    LONGDESC
    # Print project root directory.
    def dir
      say project.dir
      true
    end
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

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