index.js
function(name) {
    this.profile = trait(Object.create(this.schema), {
      context: this.context
    });

    var profile_dir = this.profile_dir = node_path.join(this.path, name);

    if (!fs.isDir(profile_dir)) {
      fs.mkdir(profile_dir);
    }

    var profile_file = this.profile_file = node_path.join(profile_dir, 'config');

    if (!fs.isFile(profile_file)) {
      fs.write(profile_file, '');

    } else {
      this.reload();
    }
  }
function(name) {
    this.profile = trait(Object.create(this.schema), {
      context: this.context
    });

    var profile_dir = this.profile_dir = node_path.join(this.path, name);

    if (!fs.isDir(profile_dir)) {
      fs.mkdir(profile_dir);
    }

    var profile_file = this.profile_file = node_path.join(profile_dir, 'config');

    if (!fs.isFile(profile_file)) {
      fs.write(profile_file, '');

    } else {
      this.reload();
    }
  }
function ( name ) { this . profile = trait ( Object . create ( this . schema ) , { context : this . context } ) ; var profile_dir = this . profile_dir = node_path . join ( this . path , name ) ; if ( ! fs . isDir ( profile_dir ) ) { fs . mkdir ( profile_dir ) ; } var profile_file = this . profile_file = node_path . join ( profile_dir , 'config' ) ; if ( ! fs . isFile ( profile_file ) ) { fs . write ( profile_file , '' ) ; } else { this . reload ( ) ; } }
Initialize the current profile, and create necessary files and dirs if not exists. Initialize properties of current profile
Initialize the current profile and create necessary files and dirs if not exists . Initialize properties of current profile