Module: MDWA::DSL

Defined in:
lib/mdwa/dsl.rb,
lib/mdwa/dsl/user.rb,
lib/mdwa/dsl/users.rb,
lib/mdwa/dsl/action.rb,
lib/mdwa/dsl/entity.rb,
lib/mdwa/dsl/process.rb,
lib/mdwa/dsl/entities.rb,
lib/mdwa/dsl/workflow.rb,
lib/mdwa/dsl/requirement.rb,
lib/mdwa/dsl/requirements.rb,
lib/mdwa/dsl/entity_actions.rb,
lib/mdwa/dsl/process_detail.rb,
lib/mdwa/dsl/entity_attribute.rb,
lib/mdwa/dsl/entity_association.rb,
lib/mdwa/dsl/entity_specification.rb,
lib/mdwa/dsl/process_detail_next_action.rb

Defined Under Namespace

Classes: Action, Entities, Entity, EntityActions, EntityAssociation, EntityAttribute, EntitySpecification, Process, ProcessDetail, ProcessDetailNextAction, Requirement, Requirements, User, Users, Workflow

Constant Summary collapse

STRUCTURAL_PATH =
'app/mdwa/structure/'
USERS_PATH =
'app/mdwa/users/'
WORKFLOW_PATH =
'app/mdwa/workflow/'
REQUIREMENTS_PATH =
'app/mdwa/requirements/'
TEMPLATES_PATH =
'app/mdwa/templates/'

Class Method Summary collapse

Class Method Details

.entitiesObject

return the entities instance



48
49
50
# File 'lib/mdwa/dsl/entities.rb', line 48

def self.entities
  Entities.instance
end

.entity(name) ⇒ Object



52
53
54
# File 'lib/mdwa/dsl/entities.rb', line 52

def self.entity(name)
  self.entities.element(name)
end

.process(name) ⇒ Object



51
52
53
# File 'lib/mdwa/dsl/workflow.rb', line 51

def self.process(name)
  self.workflow.element(name.to_sym)
end

.requirement(name) ⇒ Object



55
56
57
# File 'lib/mdwa/dsl/requirements.rb', line 55

def self.requirement(name)
  self.requirements.element(name.to_sym)
end

.requirementsObject

return the requirements instance



51
52
53
# File 'lib/mdwa/dsl/requirements.rb', line 51

def self.requirements
  Requirements.instance
end

.user(name) ⇒ Object



51
52
53
# File 'lib/mdwa/dsl/users.rb', line 51

def self.user(name)
  self.users.element(name)
end

.usersObject

return the entities instance



47
48
49
# File 'lib/mdwa/dsl/users.rb', line 47

def self.users
  Users.instance
end

.workflowObject

return the entities instance



47
48
49
# File 'lib/mdwa/dsl/workflow.rb', line 47

def self.workflow
  Workflow.instance
end