<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ideas.each &#38;:post &#187; simplecli</title>
	<atom:link href="http://blog.tobiascrawley.net/tag/simplecli/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tobiascrawley.net</link>
	<description>Another not so cleverly named blog mostly about software.</description>
	<lastBuildDate>Fri, 28 May 2010 13:56:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>server_remote gem</title>
		<link>http://blog.tobiascrawley.net/2009/03/31/server_remote-gem/</link>
		<comments>http://blog.tobiascrawley.net/2009/03/31/server_remote-gem/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 18:47:47 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[simplecli]]></category>

		<guid isPermaLink="false">http://blog.tobiascrawley.net/?p=187</guid>
		<description><![CDATA[I just re-released my server_remote plugin as a gem server_remote on github. I converted it to a gem to make it easier to use in multiple apps, and to make it easier to update (see here for the blog entry on the (now obselete) plugin). It is a gem that provides support for running commands [...]]]></description>
			<content:encoded><![CDATA[<p>I just re-released my server_remote plugin as a gem <a href="http://github.com/tobias/server_remote">server_remote</a> on github. I converted it to a gem to make it easier to use in multiple apps, and to make it easier to update (see <a href="http://blog.tobiascrawley.net/2009/01/10/server_remote-a-rails-plugin-for-easily-accessing-servers/">here</a> for the blog entry on the (now obselete) plugin). </p>

It is a gem that provides support for running commands on remote server. Once set up, it provides commands via <code>script/remote</code>:<br />
<ul>
  <li><code>remote shell</code> &#8211; same as ssh&#8217;ing to the server (this is the default command, so it can be called with just <code>remote</code>)</li>
  <li><code>remote console</code> &#8211; executes a <code>script/console</code> on the server</li>
  <li><code>remote logtail</code> &#8211; executes <code>tail -f log/&lt;environment&gt;.log</code> on the server</li>
  <li><code>remote cmd &lt;some command&gt;</code> executes command on the server, displaying the result. It <code>cd</code>&#8216;s to the remote app root first.</li>
  <li><code>remote scp &lt;local_file&gt; :&lt;remote_file&gt;</code> provides scp. Prefix remote files with &#8216;:&#8217;</li></ul>Configuration is in <code>config/server_remote.yml</code>, and is grouped into <em>profiles</em>. 

<p>Here is the output of <code>remote usage</code>:</p>


<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Executes commands on a remote server over ssh. Configuration is in:
/Users/tobias/customers/DealerIgnition/dealer_ignition/script/../config/server_remote.yml
&nbsp;
You can override the profile used with -p profile. The default profile is: app
&nbsp;
Learn more in the readme:
/opt/local/lib/ruby/gems/1.8/gems/tobias-server_remote-0.2.0/lib/server_remote/../../README.textile
&nbsp;
remote commands are:
&nbsp;
    DEFAULT COMMAND   shell
&nbsp;
    cmd               executes an arbitrary command on the server after a cd to the app path
    commands          List all 'remote' commands
    console           executes remote console
    help              Provide help documentation for a command
    logtail           executes remote tail -f on the log
    scp               copies files over scp (prefix remote files with ':')
    shell             executes remote shell
    usage             prints usage message
&nbsp;
For help on a particular command, use 'remote help COMMAND'.</pre></div></div>




<p>It uses <a href="http://remi.org">remi&#8217;s</a> <a href="http://github.com/remi/simplecli">simplecli</a> gem. </p>

<p>I plan to add other commands as needed, or you can open up <code>Remote::Commands</code> and add your own. </p>

<h3>Installation</h3>

<p>You will need to install the gem (only once), then setup any apps where you want to use it.</p>



<pre>
  sudo gem install tobias-server_remote --source http://gems.github.com/
  server_remotify path_to_app
</pre>]]></content:encoded>
			<wfw:commentRss>http://blog.tobiascrawley.net/2009/03/31/server_remote-gem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>server_remote &#8211; A Rails plugin for easily accessing servers</title>
		<link>http://blog.tobiascrawley.net/2009/01/10/server_remote-a-rails-plugin-for-easily-accessing-servers/</link>
		<comments>http://blog.tobiascrawley.net/2009/01/10/server_remote-a-rails-plugin-for-easily-accessing-servers/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 22:19:20 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[simplecli]]></category>

		<guid isPermaLink="false">http://blog.handbuiltsoftware.com/?p=102</guid>
		<description><![CDATA[Note: this post is out of date. This tool is now a gem instead of a plugin; read all about it here. I just released server_remote on github. It is a plugin for connecting to remote servers. Once installed, it provides commands via script/remote: * remote shell &#8211; same as ssh&#8217;ing to the server (this [...]]]></description>
			<content:encoded><![CDATA[<div style="background-color: #ffc;border: 1px solid #777;padding: 12px;font-size:1.5em;text-align: center;line-height: 1.2em;">
  <strong>Note:</strong> this post is out of date. This tool is now a gem instead of a plugin; read all about it <a href="http://blog.tobiascrawley.net/2009/03/31/server_remote-gem/">here</a>.<br />
</div>
I just released <a href="http://github.com/tobias/server_remote">server_remote</a> on github. It is a plugin for connecting to remote servers. Once installed, it provides commands via <code>script/remote</code>:<br />
* <code>remote shell</code> &#8211; same as ssh&#8217;ing to the server (this is the default command, so it can be called with just <code>remote</code>)<br />
* <code>remote console</code> &#8211; executes a <code>script/console</code> on the server<br />
* <code>remote logtail</code> &#8211; executes <code>tail -f log/&lt;environment&gt;.log</code> on the server

<p>Configuration is in <code>config/server_remote.yml</code>, and is grouped into <em>profiles</em>. </p>

<p>Here is the output of <code>remote usage</code>:</p>


<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"> Executes commands on a remote server over ssh. Configuration is in:
 /Users/tobias/customers/DropZite/restaurantZite/config/server_remote.yml
&nbsp;
 You can override the profile used with -p profile. The default profile is: app
&nbsp;
 Learn more in the readme:
 /Users/tobias/customers/DropZite/restaurantZite/vendor/plugins/server_remote/lib/README.textile
&nbsp;
 remote commands are:
&nbsp;
    DEFAULT COMMAND   shell
&nbsp;
    commands          List all 'remote' commands
    console           executes remote console
    help              Provide help documentation for a command
    logtail           executes remote tail -f on the log
    shell             executes remote shell
    usage             prints usage message
&nbsp;
 For help on a particular command, use 'remote help COMMAND'.</pre></div></div>




<p>It uses <a href="http://remi.org">remi&#8217;s</a> <a href="http://github.com/remi/simplecli">simplecli</a> gem. <br />
<br/><br />
I plan to add other commands as needed, or you can open up <code>Remote::Commands</code> and add your own. Install with: <code>script/plugin install git://github.com/tobias/server_remote.git</code></p>]]></content:encoded>
			<wfw:commentRss>http://blog.tobiascrawley.net/2009/01/10/server_remote-a-rails-plugin-for-easily-accessing-servers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
