Module: AppleManifestRails

Defined in:
lib/apple_manifest_rails.rb,
lib/apple_manifest_rails/engine.rb,
lib/apple_manifest_rails/version.rb,
lib/apple_manifest_rails/install/ipa.rb,
lib/apple_manifest_rails/template_dir.rb,
lib/apple_manifest_rails/install/checker.rb,
lib/apple_manifest_rails/enroll/mobile_config.rb,
lib/apple_manifest_rails/enroll/response_parser.rb,
app/helpers/apple_manifest_rails/manifest_helper.rb,
app/helpers/apple_manifest_rails/application_helper.rb,
app/controllers/apple_manifest_rails/manifest_controller.rb,
app/controllers/apple_manifest_rails/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, Enroll, Install, ManifestHelper Classes: ApplicationController, Engine, ManifestController, TemplateDir

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



10
11
12
# File 'lib/apple_manifest_rails.rb', line 10

def self.configure
  yield self
end

.ipa_pathObject



34
35
36
# File 'lib/apple_manifest_rails.rb', line 34

def self.ipa_path
  @ipa_path ||= template_dir.join('builds', 'app.ipa')
end

.ipa_path=(str) ⇒ Object



38
39
40
# File 'lib/apple_manifest_rails.rb', line 38

def self.ipa_path= str
  @ipa_path = str
end

.page_titleObject



14
15
16
# File 'lib/apple_manifest_rails.rb', line 14

def self.page_title
  @page_title ||= "AppleManifestRails v#{VERSION}"
end

.page_title=(str) ⇒ Object



18
19
20
# File 'lib/apple_manifest_rails.rb', line 18

def self.page_title=(str)
  @page_title = str
end

.template(name) ⇒ Object



30
31
32
# File 'lib/apple_manifest_rails.rb', line 30

def self.template name
  template_dir.join name
end

.template_dirObject



22
23
24
# File 'lib/apple_manifest_rails.rb', line 22

def self.template_dir
  @template_dir ||= TemplateDir.new(Rails.root.join('apple_manifest_templates'))
end

.template_dir=(path) ⇒ Object



26
27
28
# File 'lib/apple_manifest_rails.rb', line 26

def self.template_dir=(path)
  @template_dir ||= TemplateDir.new(path.to_s)
end