Project

General

Profile

« Previous | Next » 

Revision 5f6b2196

Added by Paul Kelly about 14 years ago

  • ID 5f6b2196e7bb3283bc2a294cdeba8b59f088812c

Fixes #204 - Remove AS from environments page

Merged import facility in Environment and Puppetclass controllers

View differences:

app/models/environment.rb
has_many :hosts
validates_presence_of :name
validates_uniqueness_of :name
validates_format_of :name, :with => /^\S+$/, :message => "Name cannot contain spaces"
validates_format_of :name, :with => /^\S+$/, :message => "cannot contain spaces"
default_scope :order => 'name'
def to_label
......
name
end
def self.per_page
10
end
# returns an hash of all puppet environments and their relative paths
def self.puppetEnvs
env = Hash.new

Also available in: Unified diff