public final class Bootstrap extends Object implements org.kuali.common.util.execute.Executable
yum update -y
Constructor and Description |
---|
Bootstrap(BootstrapContext context) |
Bootstrap(BootstrapContext context,
boolean skip) |
Modifier and Type | Method and Description |
---|---|
protected void |
bootstrap() |
protected void |
bootstrap(org.kuali.common.util.channel.api.SecureChannel channel) |
protected void |
enableRootSSH()
Connect as ec2-user to see if root ssh is enabled.
|
protected void |
enableRootSSH(org.kuali.common.util.channel.api.SecureChannel channel) |
void |
execute() |
protected org.kuali.common.util.channel.model.RemoteFile |
getBootStrapCompletedFile() |
protected org.kuali.common.util.channel.api.SecureChannel |
getChannel(User user,
boolean requestPseudoTerminal) |
BootstrapContext |
getContext() |
protected org.kuali.common.util.channel.model.RemoteFile |
getRootSSHEnabledFile(User ec2User) |
protected boolean |
isBootstrapped(org.kuali.common.util.channel.api.SecureChannel channel) |
protected boolean |
isRootSSHEnabled(org.kuali.common.util.channel.api.SecureChannel channel)
Return true only if the file /home/ec2-user/.bootstrap/root-ssh.enabled exists
|
boolean |
isSkip() |
protected void |
markAsBootstrapped(org.kuali.common.util.channel.api.SecureChannel channel) |
protected void |
markAsRootSSHEnabled(org.kuali.common.util.channel.api.SecureChannel channel) |
public Bootstrap(BootstrapContext context)
public Bootstrap(BootstrapContext context, boolean skip)
public void execute()
execute
in interface org.kuali.common.util.execute.Executable
protected void bootstrap()
protected boolean isBootstrapped(org.kuali.common.util.channel.api.SecureChannel channel)
protected void bootstrap(org.kuali.common.util.channel.api.SecureChannel channel)
protected void markAsBootstrapped(org.kuali.common.util.channel.api.SecureChannel channel)
protected org.kuali.common.util.channel.model.RemoteFile getBootStrapCompletedFile()
protected void enableRootSSH()
protected void enableRootSSH(org.kuali.common.util.channel.api.SecureChannel channel)
protected void markAsRootSSHEnabled(org.kuali.common.util.channel.api.SecureChannel channel)
protected org.kuali.common.util.channel.model.RemoteFile getRootSSHEnabledFile(User ec2User)
protected boolean isRootSSHEnabled(org.kuali.common.util.channel.api.SecureChannel channel)
protected org.kuali.common.util.channel.api.SecureChannel getChannel(User user, boolean requestPseudoTerminal) throws IOException
IOException
public BootstrapContext getContext()
public boolean isSkip()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.