/** * Run the database seeds. * * @return void */ public function run() { DB::table('environments')->delete(); $environment = new Environment(['name' => 'production', 'parameters' => [["id" => "vpc_cidr", "value" => "10.0.0.0/16"], ["id" => "key_name", "value" => "highcore-production"], ["id" => "private_zone", "value" => "highcore-production"], ["id" => "cloud_key", "value" => "xxxxxxxxxxxxxxxxxxxxx"], ["id" => "cloud_secret", "sensitive" => true, "value" => "xxxxxxxxxxxxxxxxxxxxxx"]]]); $environment->project()->associate(Project::wherename('highcore')->first())->save(); $this->command->info('Environments table seeded!'); }
/** * Run the database seeds. * * @return void */ public function run() { $highcore_project = Project::wherename('highcore')->first(); DB::table('templates')->delete(); $template = new Template(['name' => 'env', 'repository' => 'https://github.com/sourcestream/highcore-templates.git', 'refspec' => 'master']); $template->project()->associate($highcore_project)->save(); $template = new Template(['name' => 'highcore', 'repository' => 'https://github.com/sourcestream/highcore-templates.git', 'refspec' => 'master']); $template->project()->associate($highcore_project)->save(); $this->command->info('Templates table seeded!'); }
/** * Run the database seeds. * * @return void */ public function run() { DB::table('projects')->delete(); $project = Project::create(['name' => 'highcore']); $this->command->info('Projects table seeded!'); }