Sha256: 288fc4c2893424fc5d1ade301e9c4a26d30c104475ca0da76ebdf08dac4e759e

Contents?: true

Size: 850 Bytes

Versions: 1

Compression:

Stored size: 850 Bytes

Contents

require 'adhearsion/punchblock_plugin'

begin
  Adhearsion.config # load default config vlaues
  require "#{Dir.pwd}/config/adhearsion.rb"
rescue Exception => ex
  STDERR.puts "\nError while loading application configuration file: #{ex}"
end

namespace :adhearsion do

  namespace :config do

    desc "Show configuration values in STDOUT; it accepts a parameter: [nil|platform|<plugin-name>|all]"
    task :show, :name do |t, args|
      name = args.name.nil? ? :all : args.name.to_sym
      puts Adhearsion.config.description name, :show_values => true
    end

    desc "Show configuration description in STDOUT; it accepts a parameter: [nil|platform|<plugin-name>|all]"
    task :desc, :name do |t, args|
      name = args.name.nil? ? :all : args.name.to_sym
      puts Adhearsion.config.description name, :show_values => false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adhearsion-2.0.0.alpha1 lib/adhearsion/tasks/configuration.rb