Sha256: d6639a580db1daeeafb783a51b4b4d80bb1679995f5badb8fde3b8c563e457a6

Contents?: true

Size: 1.25 KB

Versions: 7

Compression:

Stored size: 1.25 KB

Contents

#
# Author:: Seth Chisamore (<schisamo@opscode.com>)
# Copyright:: Copyright (c) 2012 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'test-kitchen/cli'

module TestKitchen
  module CLI
    class Kitchen
      class ProjectInfo < Kitchen

        banner "kitchen project info (options)"

        def run
          ui.info("Project: ", :green, :bold)
          ui.info("  #{env.project.name}\n")
          ui.info("Configurations: ", :yellow)
          if env.project.configurations.any?
            env.project.configurations.each_key do |config_name|
              ui.info("  #{config_name}")
            end
          else
            ui.info("  default")
          end
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
test-kitchen-0.7.0 lib/test-kitchen/cli/project_info.rb
test-kitchen-0.7.0.rc.1 lib/test-kitchen/cli/project_info.rb
test-kitchen-0.7.0.beta.1 lib/test-kitchen/cli/project_info.rb
test-kitchen-0.6.0 lib/test-kitchen/cli/project_info.rb
test-kitchen-0.5.4 lib/test-kitchen/cli/project_info.rb
test-kitchen-0.5.2 lib/test-kitchen/cli/project_info.rb
test-kitchen-0.5.0 lib/test-kitchen/cli/project_info.rb