Since I wondered this for awhile myself and since this one has a formulaic answer, I&#39;ve added a new script so you can now just run:<br><br>bin/jifty script -n my-fancy-cli<br><br>and it will add &quot;my-fancy-cli&quot; to you bin directory with everything you need to get started with a command-line tool to do some server-side tweaking of your Jifty app.
<br><br>Cheers,<br>Andrew<br><br><div><span class="gmail_quote">On 1/7/08, <b class="gmail_sendername">Shawn M Moore</b> &lt;<a href="mailto:sartak@bestpractical.com">sartak@bestpractical.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sat, Jan 05, 2008 at 05:21:50AM -0800, Stanislav Sinyagin wrote:<br>&gt; hi all,<br>&gt;<br>&gt; a long-time RT user, I tried to utilize SearchBuilder<br>&gt; for my new project, and finally I found Jifty - which looks very promising.
<br><br>Yeah, Jifty takes everything RT&#39;s framework did and cranks the notch<br>from six to ten. :)<br><br>&gt; use warnings;<br>&gt; use strict;<br>&gt; use File::Basename qw(dirname);<br>&gt; use UNIVERSAL::require;
<br>&gt;<br>&gt; use Jifty;<br>&gt;<br>&gt; my $devclass = Jifty-&gt;app_class(&#39;Model&#39;, &#39;Device&#39;);<br>&gt;<br>&gt; my $device = $devclass-&gt;new();<br>&gt;<br>&gt; $device-&gt;create(hostname =&gt; &#39;aaa&#39;,
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ipv4addr =&gt; &#39;<a href="http://10.0.0.1">10.0.0.1</a>&#39;);<br>&gt;<br>&gt;<br>&gt; $device-&gt;set_property(&#39;snmp-community&#39;, &#39;aaabbb&#39;);<br>&gt; ================<br>&gt;<br>
&gt; This code results in<br>&gt; Can&#39;t locate object method &quot;new&quot; via package &quot;Toponet::Model::Device&quot;<br>&gt; (perhaps you forgot to load &quot;Toponet::Model::Device&quot;?) at bin/test.pl line 12.
<br><br>If you replace:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;use Jifty;<br><br>with:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;use Jifty::Everything;<br>&nbsp;&nbsp;&nbsp;&nbsp;BEGIN { Jifty-&gt;new }<br><br>it should work. I&#39;m not sure if Jifty-&gt;new is required to be in a BEGIN<br>block, but it&#39;s how I use it.
<br><br>&gt; thanks,<br>&gt; stan<br><br>Shawn<br><br>_______________________________________________<br>jifty-devel mailing list<br><a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a><br><a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel">
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel</a><br></blockquote></div><br>