Skip to content

Commit e4efcd6

Browse files
committed
OctoClientPack -> OctopusClientPack
1 parent c3f2fee commit e4efcd6

8 files changed

Lines changed: 25 additions & 26 deletions

File tree

src/ScriptCs.OctopusClient.Sample/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<package id="Newtonsoft.Json" version="6.0.3" targetFramework="net45" />
44
<package id="Octopus.Client" version="2.5.3.245" targetFramework="net40" />
55
<package id="ScriptCs.Contracts" version="0.9.0" targetFramework="net45" />
6-
<package id="ScriptCs.OctoClient" version="0.0.1" targetFramework="net45" />
6+
<package id="ScriptCs.OctopusClient" version="0.0.1" targetFramework="net45" />
77
<package id="Sprache" version="1.10.0.37" targetFramework="net40" />
88
</packages>

src/ScriptCs.OctopusClient.Sample/sample.csx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var octopus = Require<OctoClientPack>();
1+
var octopus = Require<OctopusClientPack>();
22
var repo = octopus.GetRepository("http://server/octopusdeploy/api", "API-XXXXXXXXXXXXXXXXXXXXXXXXXXX");
33
Console.WriteLine("Getting the current user...");
44
var user = repo.Users.GetCurrent();
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,20 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 2013
44
VisualStudioVersion = 12.0.30110.0
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScriptCs.OctoClient", "ScriptCs.OctopusClient\ScriptCs.OctoClient.csproj", "{821DC1D6-8F10-4D15-8373-5EFF43FDD7C9}"
7-
EndProject
86
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{97B3B560-DD1D-4E77-96ED-A32525791033}"
97
ProjectSection(SolutionItems) = preProject
108
.nuget\NuGet.Config = .nuget\NuGet.Config
119
.nuget\NuGet.exe = .nuget\NuGet.exe
1210
.nuget\NuGet.targets = .nuget\NuGet.targets
1311
EndProjectSection
1412
EndProject
13+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScriptCs.OctopusClient", "ScriptCs.OctopusClient\ScriptCs.OctopusClient.csproj", "{821DC1D6-8F10-4D15-8373-5EFF43FDD7C9}"
14+
EndProject
15+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Sample", "Sample", "{8E88C0EB-9645-40F5-82CA-20A877D8F0B9}"
16+
ProjectSection(SolutionItems) = preProject
17+
ScriptCs.OctopusClient.Sample\sample.csx = ScriptCs.OctopusClient.Sample\sample.csx
18+
EndProjectSection
19+
EndProject
1520
Global
1621
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1722
Debug|Any CPU = Debug|Any CPU

src/ScriptCs.OctopusClient/OctoClientPack.cs renamed to src/ScriptCs.OctopusClient/OctopusClientPack.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
using System.Net;
1+
using Octopus.Client;
22
using ScriptCs.Contracts;
3-
using Octopus.Client;
43

5-
namespace ScriptCs.OctoClient
4+
namespace ScriptCs.OctopusClient
65
{
7-
public class OctoClientPack : IScriptPackContext
6+
public class OctopusClientPack : IScriptPackContext
87
{
98
public OctopusRepository GetRepository(string hostUrl, string apiKey)
109
{

src/ScriptCs.OctopusClient/ScriptPack.cs renamed to src/ScriptCs.OctopusClient/OctopusClientScriptPack.cs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
1+

62
using ScriptCs.Contracts;
73

8-
namespace ScriptCs.OctoClient
4+
namespace ScriptCs.OctopusClient
95
{
10-
public class ScriptPack : IScriptPack
6+
public class OctopusClientScriptPack : IScriptPack
117
{
128
public void Initialize(IScriptPackSession session)
139
{
@@ -24,15 +20,14 @@ public void Initialize(IScriptPackSession session)
2420
//ImportNamespace
2521
//This method can import namespaces for use in your scripts to help
2622
//keep user's scripts clean and simple.
27-
session.ImportNamespace("System.Net");
2823
session.ImportNamespace("Octopus.Client");
2924
session.ImportNamespace("ScriptCs.Contracts");
30-
session.ImportNamespace("ScriptCs.OctoClient");
25+
session.ImportNamespace("ScriptCs.OctopusClient");
3126
}
3227

3328
public IScriptPackContext GetContext()
3429
{
35-
return new OctoClientPack();
30+
return new OctopusClientPack();
3631
}
3732

3833
public void Terminate()
4.75 KB
Binary file not shown.

src/ScriptCs.OctopusClient/ScriptCs.OctoClient.csproj renamed to src/ScriptCs.OctopusClient/ScriptCs.OctopusClient.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<ProjectGuid>{821DC1D6-8F10-4D15-8373-5EFF43FDD7C9}</ProjectGuid>
88
<OutputType>Library</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>ScriptCs.OctoClient</RootNamespace>
11-
<AssemblyName>ScriptCs.OctoClient</AssemblyName>
10+
<RootNamespace>ScriptCs.OctopusClient</RootNamespace>
11+
<AssemblyName>ScriptCs.OctopusClient</AssemblyName>
1212
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
@@ -58,13 +58,13 @@
5858
<Reference Include="System.Xml" />
5959
</ItemGroup>
6060
<ItemGroup>
61-
<Compile Include="OctoClientPack.cs" />
61+
<Compile Include="OctopusClientPack.cs" />
6262
<Compile Include="Properties\AssemblyInfo.cs" />
63-
<Compile Include="ScriptPack.cs" />
63+
<Compile Include="OctopusClientScriptPack.cs" />
6464
</ItemGroup>
6565
<ItemGroup>
6666
<None Include="packages.config" />
67-
<None Include="ScriptCs.OctoClient.nuspec" />
67+
<None Include="ScriptCs.OctopusClient.nuspec" />
6868
</ItemGroup>
6969
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7070
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

src/ScriptCs.OctopusClient/ScriptCs.OctoClient.nuspec renamed to src/ScriptCs.OctopusClient/ScriptCs.OctopusClient.nuspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0"?>
22
<package >
33
<metadata>
4-
<id>ScriptCs.OctoClient</id>
4+
<id>ScriptCs.OctopusClient</id>
55
<version>$version$</version>
66
<title>$title$</title>
77
<authors>$author$</authors>
88
<owners>$author$</owners>
9-
<licenseUrl>https://github.com/alfhenrik/ScriptCs.OctoClient/master/LICENCE.md</licenseUrl>
10-
<projectUrl>https://github.com/alfhenrik/ScriptCs.OctoClient</projectUrl>
9+
<licenseUrl>https://github.com/alfhenrik/ScriptCs.OctopusClient/master/LICENCE.md</licenseUrl>
10+
<projectUrl>https://github.com/alfhenrik/ScriptCs.OctopusClient</projectUrl>
1111
<iconUrl>http://www.gravatar.com/avatar/5c754f646971d8bc800b9d4057931938.png?s=120</iconUrl>
1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1313
<description>$description$</description>

0 commit comments

Comments
 (0)