Sha256: 0ebe4a042081144eda5ef31a555968f4947bebbda55e81a17332b414ca297dcb

Contents?: true

Size: 1.01 KB

Versions: 89

Compression:

Stored size: 1.01 KB

Contents

#
# Copyright 2012 Mortar Data Inc.
#
# 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 "mortar/command/base"

# list available pigscripts
#
class Mortar::Command::PigScripts < Mortar::Command::Base
    
  # pigscripts
  #
  # Display the available set of pigscripts
  def index
    # validation
    validate_arguments!
    if project.pigscripts.any?
      styled_header("pigscripts")
      styled_array(project.pigscripts.collect{|k,v| v.executable_path}.sort)
    else
      display("You have no pigscripts.")
    end
  end

end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
mortar-0.15.53 lib/mortar/command/pigscripts.rb
mortar-0.15.52 lib/mortar/command/pigscripts.rb
mortar-0.15.51 lib/mortar/command/pigscripts.rb
mortar-0.15.50 lib/mortar/command/pigscripts.rb
mortar-0.15.49 lib/mortar/command/pigscripts.rb
mortar-0.15.48 lib/mortar/command/pigscripts.rb
mortar-0.15.47 lib/mortar/command/pigscripts.rb
mortar-0.15.46 lib/mortar/command/pigscripts.rb
mortar-0.15.45 lib/mortar/command/pigscripts.rb
mortar-0.15.44 lib/mortar/command/pigscripts.rb
mortar-0.15.43 lib/mortar/command/pigscripts.rb
mortar-0.15.42 lib/mortar/command/pigscripts.rb
mortar-0.15.41 lib/mortar/command/pigscripts.rb
mortar-0.15.40 lib/mortar/command/pigscripts.rb
mortar-0.15.39 lib/mortar/command/pigscripts.rb
mortar-0.15.38 lib/mortar/command/pigscripts.rb
mortar-0.15.37 lib/mortar/command/pigscripts.rb
mortar-0.15.36 lib/mortar/command/pigscripts.rb
mortar-0.15.35 lib/mortar/command/pigscripts.rb
mortar-0.15.34 lib/mortar/command/pigscripts.rb