lib/cloud-crowd.rb
# CloudCrowd::Actions are requested dynamically by name. Access them through
# this actions property, which behaves like a hash. At load time, we
# load all installed Actions and CloudCrowd's default Actions into it.
# If you wish to have certain nodes be specialized to only handle certain 
# Actions, then install only those into the actions directory.
:Actions are requested dynamically by name. Access them through
this actions property, which behaves like a hash. At load time, we
load all installed Actions and CloudCrowd's default Actions into it.
If you wish to have certain nodes be specialized to only handle certain
Actions, then install only those into the actions directory.
: Actions are requested dynamically by name . Access them through this actions property which behaves like a hash . At load time we load all installed Actions and CloudCrowd ' s default Actions into it . If you wish to have certain nodes be specialized to only handle certain Actions then install only those into the actions directory .
def actions
      return @actions if @actions
      @actions = {}
      (default_actions + installed_actions + custom_actions).each do |path|
        load_action_from(path)
      end
      @actions
    rescue NameError => e
      adjusted_message = "One of your actions failed to load. Please ensure that the name of your action class can be deduced from the name of the file. ex: 'word_count.rb' => 'WordCount'\n#{e.message}" 
      raise NameError.new(adjusted_message, e.name)
    end
def actions return @actions if @actions @actions = { } ( default_actions + installed_actions + custom_actions ) . each do | path | load_action_from ( path ) end @actions rescue NameError => e adjusted_message = "One of your actions failed to load. Please ensure that the name of your action class can be deduced from the name of the file. ex: 'word_count.rb' => 'WordCount'\n#{e.message}" raise NameError . new ( adjusted_message , e . name ) end
CloudCrowd::Actions are requested dynamically by name.
CloudCrowd :: Actions are requested dynamically by name .