Class: HooplaSalesforce::Rake::BaseTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/hoopla_salesforce/rake/base_task.rb

Direct Known Subclasses

DeployTask, RetrieveTask

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) {|_self| ... } ⇒ BaseTask

Returns a new instance of BaseTask.

Yields:

  • (_self)

Yield Parameters:



26
27
28
29
30
31
32
33
# File 'lib/hoopla_salesforce/rake/base_task.rb', line 26

def initialize(name)
  @name = name
  @enterprise_wsdl = HooplaSalesforce.enterprise_wsdl
  @metadata_wsdl = HooplaSalesforce.

  yield self if block_given?
  define
end

Instance Attribute Details

#enterprise_wsdlObject

Path to your enterprise WSDL. Defaults to value of HooplaSalesforce.enterprise_wsdl.



21
22
23
# File 'lib/hoopla_salesforce/rake/base_task.rb', line 21

def enterprise_wsdl
  @enterprise_wsdl
end

#metadata_wsdlObject

Path to your metadata WSDL. Defaults to value of HooplaSalesforce.metadata_wsdl.



24
25
26
# File 'lib/hoopla_salesforce/rake/base_task.rb', line 24

def 
  @metadata_wsdl
end

#nameObject

The name for the task and any dependencies.



9
10
11
# File 'lib/hoopla_salesforce/rake/base_task.rb', line 9

def name
  @name
end

#passwordObject

Your salesforce password



15
16
17
# File 'lib/hoopla_salesforce/rake/base_task.rb', line 15

def password
  @password
end

#tokenObject

Your salesforce API token, which will get concatenated onto your password.



18
19
20
# File 'lib/hoopla_salesforce/rake/base_task.rb', line 18

def token
  @token
end

#usernameObject

Your salesforce username



12
13
14
# File 'lib/hoopla_salesforce/rake/base_task.rb', line 12

def username
  @username
end